Param for home meta tag content
This commit is contained in:
parent
b0c4dc0755
commit
d58a5faefd
|
@ -16,6 +16,7 @@ googleAnalytics = "UA-123456789-1"
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
description = "An accessibility-friendly Hugo theme, ported from the [original Cupper](https://github.com/ThePacielloGroup/cupper) project."
|
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/)."
|
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/
|
# For more date formats see https://gohugo.io/functions/format/
|
||||||
dateFormat = "Jan 2, 2006"
|
dateFormat = "Jan 2, 2006"
|
||||||
|
|
|
@ -16,6 +16,7 @@ imaging:
|
||||||
|
|
||||||
params:
|
params:
|
||||||
description: An accessibility-friendly Hugo theme, ported from the [original Cupper](https://github.com/ThePacielloGroup/cupper) project.
|
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/).
|
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/
|
# For more date formats see https://gohugo.io/functions/format/
|
||||||
dateFormat: Jan 2, 2006
|
dateFormat: Jan 2, 2006
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<link rel="canonical" href="{{ .Permalink }}">
|
<link rel="canonical" href="{{ .Permalink }}">
|
||||||
|
|
||||||
{{ if .IsHome }}
|
{{ if .IsHome }}
|
||||||
{{ with .Site.Params.description }}
|
{{ with .Site.Params.homeMetaContent }}
|
||||||
<meta name="description" content="{{ . | plainify }}">
|
<meta name="description" content="{{ . | plainify }}">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user