From d16381d87e78197d99e7470de49e3c73abde3a31 Mon Sep 17 00:00:00 2001 From: Steven Engler Date: Sun, 31 Mar 2024 17:09:52 -0400 Subject: [PATCH] Added option to use "onion-location" meta attribute --- exampleSite/config.toml | 2 ++ layouts/_default/baseof.html | 3 +++ 2 files changed, 5 insertions(+) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 2810049..5acac70 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -22,3 +22,5 @@ theme = "no-js-hugo-theme" # enable the table of content on pages with more than this many words (negative to disable) # (can be overridden per-page by setting the 'toc' front matter parameter) #tocWordThreshold = 1000 # default + # adds an "onion-location" meta attribute to the HTML of each page + #onionLocation = "http://.onion" # default diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index c49bfeb..92b6754 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -5,6 +5,9 @@ +{{- if isset .Site.Params "onionlocation" }} + +{{- end }} {{ block "title" . }}{{ .Site.Title }}{{ end }}