Skip to content

Commit

Permalink
Only check for tags if it's an article
Browse files Browse the repository at this point in the history
issue #192
  • Loading branch information
dnmfarrell committed Sep 11, 2019
1 parent 6750659 commit d9f814f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions layouts/partials/header/ograph-twittercard.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
{{- $author := index .Site.Data.author $author_name }}
<meta property="og:type" content="article" />
<meta property="og:image" content="{{ strings.TrimRight "/" .Site.BaseURL }}{{ or (or .Params.thumbnail .Params.image) $author.image }}" />
{{- range $tag := .Params.tags }}
<meta property="og:article:tag" content="{{ $tag }}" />
{{- end }}
{{- else }}
<meta property="og:type" content="website" />
<meta property="og:image" content="{{ strings.TrimRight "/" .Site.BaseURL }}{{ or .Params.image "/images/site/perl-onion.png" }}" />
{{- end }}
{{- range $tag := .Params.tags }}
<meta property="og:article:tag" content="{{ $tag }}" />
{{- end }}

0 comments on commit d9f814f

Please sign in to comment.