[go: nahoru, domu]

Skip to content

Commit

Permalink
Add support for meta descriptions
Browse files Browse the repository at this point in the history
The meta description tag is _allegedly_ important for SEO, and it
can improve the page's summary in Google results.
  • Loading branch information
DavidWittman authored and athul committed May 22, 2021
1 parent 11d2306 commit 1f47eeb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
{{- end -}}

<meta name="viewport" content="width=device-width, initial-scale=1">

{{- if isset .Site.Params "description" }}
<meta name="description" content="{{ .Site.Params.description }}" />
{{- end }}
<meta property="og:image" content="{{ .Site.Params.og_image }}"/>
{{ with .OutputFormats.Get "rss" -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
Expand Down

0 comments on commit 1f47eeb

Please sign in to comment.