Added opengraph meta tags.
This commit is contained in:
parent
cf54dbd210
commit
3565ba1e72
1 changed files with 16 additions and 3 deletions
9
layouts/partials/opengraph_meta.html
Normal file
9
layouts/partials/opengraph_meta.html
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{{ if .IsPage -}}
|
||||
<meta name="description" content="{{ .Description | default (replaceRE "\n" " " .Summary) }}">
|
||||
{{ else -}}
|
||||
<meta name="description" content="{{ $.Param "description" }}">
|
||||
{{ end -}}
|
||||
<meta property="og:site_name" content="{{ .Site.Title }}">
|
||||
<meta property="og:title" content="{{ .Title }}">
|
||||
<meta property="og:url" content="{{ .Permalink }}">
|
||||
{{ with $.Param "image" }}<meta name="og:image" content="{{ . | absURL }}">{{ end }}
|
||||
Loading…
Reference in a new issue