Added option to use "onion-location" meta attribute
This commit is contained in:
parent
ab12e81175
commit
d16381d87e
@ -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)
|
# 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)
|
# (can be overridden per-page by setting the 'toc' front matter parameter)
|
||||||
#tocWordThreshold = 1000 # default <unset>
|
#tocWordThreshold = 1000 # default <unset>
|
||||||
|
# adds an "onion-location" meta attribute to the HTML of each page
|
||||||
|
#onionLocation = "http://<your-onion-service-address>.onion" # default <unset>
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width">
|
<meta name="viewport" content="width=device-width">
|
||||||
|
{{- if isset .Site.Params "onionlocation" }}
|
||||||
|
<meta http-equiv="onion-location" content="{{ urls.JoinPath .Site.Params.OnionLocation .RelPermalink }}">
|
||||||
|
{{- end }}
|
||||||
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
|
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
|
||||||
<link rel="stylesheet" href="{{ "css/styles.css" | relURL }}">
|
<link rel="stylesheet" href="{{ "css/styles.css" | relURL }}">
|
||||||
<link id="theme_css" rel="stylesheet" href="{{ "css/themes" | relURL }}/{{ .Site.Params.ThemeStyle | default $themeStyleDefault }}">
|
<link id="theme_css" rel="stylesheet" href="{{ "css/themes" | relURL }}/{{ .Site.Params.ThemeStyle | default $themeStyleDefault }}">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user