update better onion URL, revert View-Source header back to repo home

http://jarvis2i2vp4j4tbxjogsnqdemnte5xhzyi7hziiyzxwge3hzmh57zad.onion
This commit is contained in:
2021-05-17 10:46:01 -04:00
parent af3f5eeb7b
commit c7a2da8c4a
7 changed files with 39 additions and 32 deletions
+5 -5
View File
@@ -12,15 +12,15 @@
/.well-known/amphtml/apikey.pub
Content-Type: text/plain; charset=UTF-8
# Set Source and Onion-Location headers based on each URL
# Set Onion-Location headers based on each URL
{{- range $page := .Site.Pages }}
{{ $onion := print .Site.Params.baseOnionURL $page.RelPermalink }}
{{ $page.RelPermalink }}
Onion-Location: {{ print .Site.Params.baseOnionURL $page.RelPermalink }}
X-View-Source: {{ .Scratch.Get "sourceURL" }}
Onion-Location: {{ $onion }}
{{ if and .IsPage (ne .Params.amp false) -}}
{{ print $page.RelPermalink "amp.html" }}
Onion-Location: {{ print .Site.Params.baseOnionURL $page.RelPermalink "amp.html" }}
X-View-Source: {{ .Scratch.Get "sourceURL" }}
Onion-Location: {{ print $onion "amp.html" }}
{{- end }}
{{ end -}}