diff options
author | Tom Hyndman <mdashx@users.noreply.github.com> | 2020-12-10 04:56:29 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-10 04:56:29 +0300 |
commit | c9b6a638a48863f4e9a8ec4f4c7581b06aa11268 (patch) | |
tree | d5da7f23373c17340bdf5aa6d3b608a198c15e29 | |
parent | abda471d66864f4def0cb2822013db096f549d1c (diff) | |
parent | e1435399c9781611008687f326b33c803fb29c7e (diff) |
Merge pull request #3 from MrMinos/add-description-meta
add description meta tag to rendered pages
-rw-r--r-- | layouts/partials/head.html | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 8f44dd2..2444bbb 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -2,6 +2,7 @@ <meta charset="UTF-8"> <meta name="viewport" content="width=device-width,initial-scale=1"> <title>{{ block "title" . }}{{ if .Title }}{{ .Title }} | {{ end }}{{end }}{{ .Site.Title }}</title> + <meta name="description" content="{{if .IsHome}}{{ $.Site.Params.description }}{{else}}{{.Description}}{{end}}" /> <link rel="icon" type="image/png" href="/assets/favicon.png" sizes="16x16"> <link rel="icon" type="image/png" href="/assets/favicon.png" sizes="32x32"> <link rel="icon" type="image/png" href="/assets/favicon.png" sizes="96x96"> |