Skip to content
Snippets Groups Projects
Commit c5c85b0d authored by Alexandre Vicenzi's avatar Alexandre Vicenzi
Browse files

Tags and Categories in Open Graph

parent b0988684
No related branches found
No related tags found
No related merge requests found
...@@ -18,8 +18,19 @@ ...@@ -18,8 +18,19 @@
<meta property="article:published_time" content="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}"/> <meta property="article:published_time" content="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}"/>
<meta property="article:modified_time" content="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}"/> <meta property="article:modified_time" content="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}"/>
<meta property="article:author" content="{{ .Site.Params.author }}"> <meta property="article:author" content="{{ .Site.Params.author }}">
<!-- <meta property="article:section" content="category"/> -->
<!-- <meta property="article:tag" content="tag"/> --> {{ with .Params.Categories -}}
{{- range $name := . -}}
<meta property="article:section" content="{{ $name }}"/>
{{ end -}}
{{- end -}}
{{ with .Params.Tags -}}
{{- range $name := . -}}
<meta property="article:tag" content="{{ $name }}"/>
{{ end -}}
{{- end -}}
{{ else }} {{ else }}
<meta property="og:type" content="blog"/> <meta property="og:type" content="blog"/>
<meta property="og:site_name" content="{{ .Site.Title }}"/> <meta property="og:site_name" content="{{ .Site.Title }}"/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment