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 }}