hackertours-theme/layouts/partials/opengraph_meta.html
2018-03-02 11:15:05 +01:00

9 lines
446 B
HTML

{{ 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 }}