aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-05-07 21:21:00 -0400
committertdro <tdro@noreply.example.com>2022-05-07 21:21:00 -0400
commit300c9aa4ffb434b4fefead7d0fa3b438063d1fb6 (patch)
tree0429fafca2b0c7eda7e5705db612f8b4e1b3fd14
parent1cf142e6941046cf45ab74f4368b56f7fc6be82a (diff)
downloadcanory-300c9aa4ffb434b4fefead7d0fa3b438063d1fb6.tar.gz
canory-300c9aa4ffb434b4fefead7d0fa3b438063d1fb6.tar.bz2
canory-300c9aa4ffb434b4fefead7d0fa3b438063d1fb6.zip
themes/default/layouts/partials/head: Add refresh setting
-rw-r--r--config.json5
-rw-r--r--config.toml4
-rw-r--r--config.yaml4
-rw-r--r--themes/default/layouts/partials/head.html5
4 files changed, 14 insertions, 4 deletions
diff --git a/config.json b/config.json
index 18544c4..94656ff 100644
--- a/config.json
+++ b/config.json
@@ -84,7 +84,10 @@
}
},
"params": {
- "production": false,
+ "site": {
+ "production": false,
+ "refresh": null
+ },
"webmanifest": {
"name": "Micro Blog",
"shortName": "Micro",
diff --git a/config.toml b/config.toml
index fe3d643..548178b 100644
--- a/config.toml
+++ b/config.toml
@@ -81,7 +81,9 @@ enableRobotsTXT = true
noHl = false
[params]
- production = false
+
+ [params.site]
+ production = false
[params.webmanifest]
name = "Micro Blog"
diff --git a/config.yaml b/config.yaml
index eeb93dd..a3eee9d 100644
--- a/config.yaml
+++ b/config.yaml
@@ -68,7 +68,9 @@ markup:
noHl: false
params:
- production: false
+ site:
+ production: false
+ refresh:
webmanifest:
name: Micro Blog
shortName: Micro
diff --git a/themes/default/layouts/partials/head.html b/themes/default/layouts/partials/head.html
index ee72043..da9c04a 100644
--- a/themes/default/layouts/partials/head.html
+++ b/themes/default/layouts/partials/head.html
@@ -9,6 +9,9 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="keywords" content="{{- partial "site-title.html" . -}}">
{{ hugo.Generator }}
+{{ with .Site.Params.site.refresh -}}
+<meta http-equiv="refresh" content="{{ . }}">
+{{- end }}
<!-- Search Engine Tags -->
<meta itemprop="name" content="{{ partial "site-title.html" . -}}">
@@ -41,7 +44,7 @@
{{- $js := $index | resources.Minify | fingerprint -}}
{{- $css := slice $default $syntax | resources.Concat "css/bundle.css" | resources.Minify | fingerprint -}}
-{{ if .Site.Params.production }}
+{{ if .Site.Params.site.production }}
<link rel="stylesheet" href="{{ $css.Permalink }}">
<script src="{{ $js.Permalink }}"></script>
{{ else }}