Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/de-souza/hugo-flex.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--layouts/_default/baseof.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 8c412ea..eb891fc 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -3,6 +3,13 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
+ {{ if .Summary }}
+ <meta name="description" content="{{ .Summary }}">
+ {{ else }}
+ {{ with site.Params.description }}
+ <meta name="description" content="{{ . }}">
+ {{ end }}
+ {{ end }}
{{ hugo.Generator }}
{{ if site.Params.schema }}{{ template "_internal/schema.html" . }}{{ end }}
{{ if site.Params.opengraph }}{{ template "_internal/opengraph.html" . }}{{ end }}