citra-emu
/
citra-web
Archived
1
0
Fork 0

Added og:description and og:image (for blog posts)

This commit is contained in:
chris062689 2017-05-04 22:14:15 -04:00
parent 4e68e3f610
commit ce9da7ec25
1 changed files with 2 additions and 0 deletions

View File

@ -17,11 +17,13 @@
{{ end }} {{ end }}
<meta property="og:title" content="{{ if ne .URL "/" }} {{ .Title }} &middot; {{ end }} {{ .Site.Title }}" /> <meta property="og:title" content="{{ if ne .URL "/" }} {{ .Title }} &middot; {{ end }} {{ .Site.Title }}" />
<meta property="og:description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}" />
   <meta property="og:site_name" content="{{ .Site.Title }}" />    <meta property="og:site_name" content="{{ .Site.Title }}" />
<meta property="og:url" content="{{ .Permalink }}" /> <meta property="og:url" content="{{ .Permalink }}" />
         
{{ if (eq .Section "entry") | or (eq .Section "wiki") }} {{ if (eq .Section "entry") | or (eq .Section "wiki") }}
   <meta property="og:type" content="article" />    <meta property="og:type" content="article" />
<meta property="og:image" content="{{ .Site.BaseURL }}images/banners/{{ .Params.Banner | default (print .File.BaseFileName ".png") }}" />
<meta property="og:article:published_time" content="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}" /> <meta property="og:article:published_time" content="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}" />
     {{ range .Params.tags }}      {{ range .Params.tags }}
     <meta property="og:article:tag" content="{{ . }}" />      <meta property="og:article:tag" content="{{ . }}" />