diff options
author | Zachary Betz <zwbetz@gmail.com> | 2019-02-20 23:07:34 +0300 |
---|---|---|
committer | Zachary Betz <zwbetz@gmail.com> | 2019-02-20 23:07:34 +0300 |
commit | d58a5faefd51564c8ef0b4501750b87104aa5aeb (patch) | |
tree | bd8a657aed7770964eee1d926e8661e9820c4ab2 | |
parent | b0c4dc0755192f56063e04dc3cf069cb065a249b (diff) |
Param for home meta tag content
-rw-r--r-- | exampleSite/config.toml | 1 | ||||
-rw-r--r-- | exampleSite/config.yaml | 1 | ||||
-rw-r--r-- | layouts/partials/head.html | 2 |
3 files changed, 3 insertions, 1 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 68cee3d..c403196 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -16,6 +16,7 @@ googleAnalytics = "UA-123456789-1" [params] description = "An accessibility-friendly Hugo theme, ported from the [original Cupper](https://github.com/ThePacielloGroup/cupper) project." + homeMetaContent = "An accessibility-friendly Hugo theme, ported from the original Cupper project." footer = "Made with [Hugo](https://gohugo.io/). Themed by [Cupper](https://github.com/zwbetz-gh/cupper-hugo-theme). Deployed to [Netlify](https://www.netlify.com/)." # For more date formats see https://gohugo.io/functions/format/ dateFormat = "Jan 2, 2006" diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index ce98a20..0d7d7e0 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -16,6 +16,7 @@ imaging: params: description: An accessibility-friendly Hugo theme, ported from the [original Cupper](https://github.com/ThePacielloGroup/cupper) project. + homeMetaContent: An accessibility-friendly Hugo theme, ported from the original Cupper project. footer: Made with [Hugo](https://gohugo.io/). Themed by [Cupper](https://github.com/zwbetz-gh/cupper-hugo-theme). Deployed to [Netlify](https://www.netlify.com/). # For more date formats see https://gohugo.io/functions/format/ dateFormat: Jan 2, 2006 diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 974a4d1..4befd52 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -7,7 +7,7 @@ <link rel="canonical" href="{{ .Permalink }}"> {{ if .IsHome }} - {{ with .Site.Params.description }} + {{ with .Site.Params.homeMetaContent }} <meta name="description" content="{{ . | plainify }}"> {{ end }} {{ end }} |