diff options
author | Bryan Newbold <bnewbold@archive.org> | 2020-10-15 19:49:09 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2020-10-15 19:49:09 -0700 |
commit | d5df9ea10b136019d3f180aa151a556da03c137d (patch) | |
tree | a8c89c12917b518bc3a09fccd617eea01867355c /fatcat_scholar/templates | |
parent | 6fbd3cdb7e0982b565102a779ea63a452be353f2 (diff) | |
download | fatcat-scholar-d5df9ea10b136019d3f180aa151a556da03c137d.tar.gz fatcat-scholar-d5df9ea10b136019d3f180aa151a556da03c137d.zip |
web: add experimental Onion-Location HTML meta tag
Diffstat (limited to 'fatcat_scholar/templates')
-rw-r--r-- | fatcat_scholar/templates/base.html | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fatcat_scholar/templates/base.html b/fatcat_scholar/templates/base.html index a856016..f651214 100644 --- a/fatcat_scholar/templates/base.html +++ b/fatcat_scholar/templates/base.html @@ -4,6 +4,11 @@ <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="referrer" content="origin-when-cross-origin"> + {% if settings.SCHOLAR_ENV == "prod" -%} + <meta http-equiv="onion-location" content="https://scholar.archivev3qli37bju4rlh27glh24lljyezwxf4pokmrdbpefjlcrp5id.onion"> + {%- elif settings.SCHOLAR_ENV == "qa" -%} + <meta http-equiv="onion-location" content="https://scholar-qa.archivev3qli37bju4rlh27glh24lljyezwxf4pokmrdbpefjlcrp5id.onion"> + {%- endif %} {# no Javascript currently <script> /* |