From 10bebead8a354548c125fb7b1d51ec0ac552e382 Mon Sep 17 00:00:00 2001 From: blank X Date: Tue, 22 Jan 2019 17:06:23 +0700 Subject: [PATCH] I forgot :p --- public/get-keys.html | 2 +- public/toc.js | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/public/get-keys.html b/public/get-keys.html index 53ade84..498d766 100644 --- a/public/get-keys.html +++ b/public/get-keys.html @@ -10,7 +10,7 @@

I don't know what a "static site generator" is


- +

The keyserver way:

diff --git a/public/toc.js b/public/toc.js index 585b785..f3c0647 100644 --- a/public/toc.js +++ b/public/toc.js @@ -1 +1,6 @@ -document.getElementById("tocid").innerHTML = "

sensible-browser /blankx/{{index,contact,get-keys,template,404,403,toc}.html,redir/{blankx,dotfiles,gpgp,controller,command-runner},keybase.txt}

"; +const cururl = window.location.href; +if (cururl.indexOf('redir') >= 0) { + let toccon = "

sensible-browser /blankx/{{index,contact,get-keys,template,404,403,toc}.html,redir/{blankx,dotfiles,gpgp,controller,command-runner},keybase.txt}

"; +} else { + let toccon = "

sensible-browser /blankx/{{index,contact,get-keys,template,404,403,toc}.html,redir/{blankx,dotfiles,gpgp,controller,command-runner},keybase.txt}

"; +document.getElementById("tocid").innerHTML = toccon;