Browse Source

added meta tags for open graph

pull/141/head
abhidj0090 4 years ago
parent
commit
0c1ef87267
1 changed files with 7 additions and 2 deletions
  1. 7
    2
      layouts/partials/head.html

+ 7
- 2
layouts/partials/head.html View File

@@ -5,9 +5,14 @@
{{ "<!-- mobile responsive meta -->" | safeHTML }}
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{ with site.Params.description }}{{ . }}{{ end }}{{ end }}">
{{ with site.Params.author }}
<!-- {{ with site.Params.author }} -->
<meta name="author" content="{{ . }}">{{ end }}
{{ hugo.Generator }}
<!-- {{ hugo.Generator }} -->

<meta property="og:title" content="{{ .Title }}" />
<meta property="og:description" content="{{ with .Description }}{{ . }}{{ else }}{{ with site.Params.description }}{{ . }}{{ end }}{{ end }}" />
<meta property="og:image" content="{{ .image }}" />
<meta property="og:url" content="{{.Permalink}}" />

{{ "<!-- plugins -->" | safeHTML }}
{{ range site.Params.plugins.css }}

Loading…
Cancel
Save