diff options
-rw-r--r-- | config.json | 5 | ||||
-rw-r--r-- | config.toml | 4 | ||||
-rw-r--r-- | config.yaml | 4 | ||||
-rw-r--r-- | themes/default/layouts/partials/head.html | 5 |
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 }} |