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

Changed og:image path depending on section type (entry, wiki, games, etc.)

This commit is contained in:
chris062689 2017-06-01 18:40:05 -04:00
parent 1bdc356244
commit c9b554994d
1 changed files with 5 additions and 1 deletions

View File

@ -23,7 +23,11 @@
    
{{ if (eq .Section "entry") | or (eq .Section "wiki") | or (eq .Section "games") }}
   <meta property="og:type" content="article" />
<meta property="og:image" content="{{ .Site.BaseURL }}images/banners/{{ .Params.Banner | default (print .File.BaseFileName ".png") }}" />
{{ if (eq .Section "entry") | or (eq .Section "wiki") }}
<meta property="og:image" content="{{ .Site.BaseURL }}images/banners/{{ .Params.Banner | default (print .File.BaseFileName ".png") }}" />
{{ else if (eq .Section "games") }}
<meta property="og:image" content="{{ .Site.BaseURL }}images/games/{{ .Params.Banner | default (print .File.BaseFileName ".png") }}" />
{{ end }}
<meta property="og:article:published_time" content="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}" />
     {{ range .Params.tags }}
     <meta property="og:article:tag" content="{{ . }}" />