diff options
author | Michael Romero <halogenica@users.noreply.github.com> | 2019-09-21 10:29:28 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-21 10:29:28 +0300 |
commit | 3dabe46dbae9a566e0a1c405de3931fc7bb76690 (patch) | |
tree | e588b8ea3950e500029432ef7f22cb3083154fcf /layouts | |
parent | 3836f4c24abd4c6b6b25eb10a279981288a14027 (diff) | |
parent | 8835ccf4791a55acddf42f9a418a748e188a376b (diff) |
Merge pull request #279 from henribru/remove-duplicate-meta-tags
Remove duplicate meta tags
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/head.html | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 2c872b4..83ace10 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -29,13 +29,9 @@ <!-- Site Title, Description, Author, and Favicon --> {{- with ($.Scratch.Get "Title") }} <title>{{ . }} - {{ $.Site.Title }}</title> - <meta property="og:title" content="{{ . }}" /> - <meta name="twitter:title" content="{{ . | truncate 70 }}" /> {{- end }} {{- with ($.Scratch.Get "Description") }} <meta name="description" content="{{ . }}"> - <meta property="og:description" content="{{ . }}"> - <meta name="twitter:description" content="{{ . | truncate 200 }}"> {{- end }} {{- with .Site.Author.name }} <meta name="author" content="{{ . }}"/> @@ -44,22 +40,6 @@ {{- with .Site.Params.favicon }} <link href='{{ . | absURL }}' rel='icon' type='image/x-icon'/> {{- end -}} -<!-- Social Media Tags --> -{{- with .Params.share_img | default .Params.image | default .Site.Params.logo }} - <meta property="og:image" content="{{ . | absURL }}" /> - <meta name="twitter:image" content="{{ . | absURL }}" /> -{{- end }} - <meta name="twitter:card" content="summary" /> -{{- with .Site.Author.twitter }} - <meta name="twitter:site" content="@{{ . }}" /> - <meta name="twitter:creator" content="@{{ . }}" /> -{{- end }} -{{- with .Site.Params.fb_app_id }} - <meta property="fb:app_id" content="{{ . }}" /> -{{- end }} - <meta property="og:url" content="{{ .Permalink | absLangURL }}" /> - <meta property="og:type" content="website" /> - <meta property="og:site_name" content="{{ .Site.Title }}" /> <!-- Hugo Version number --> {{ hugo.Generator -}} <!-- Links and stylesheets --> |