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

Updated base template and rss to include games metadata.

This commit is contained in:
chris062689 2017-06-01 18:31:46 -04:00
parent 3efa31db9c
commit 1bdc356244
2 changed files with 22 additions and 2 deletions

View File

@ -21,7 +21,7 @@
   <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") | or (eq .Section "games") }}
   <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: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 }}" />

View File

@ -13,7 +13,27 @@
      <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 MST" }}</pubDate>       <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 MST" }}</pubDate>
      <author>{{ .Params.Author }}</author>       <author>{{ .Params.Author }}</author>
      <guid>{{ .Permalink }}</guid>       <guid>{{ .Permalink }}</guid>
      <description>{{ .Content | html }}</description>       <description>{{ .Summary | html }}</description>
    </item>
    {{ end }}
{{ range where .Data.Pages "Section" "wiki" }}
    <item>
      <title>{{ .Title }}</title>
      <link>{{ .Permalink }}</link>
      <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 MST" }}</pubDate>
      <author>{{ .Params.Author }}</author>
      <guid>{{ .Permalink }}</guid>
      <description>{{ .Summary | html }}</description>
    </item>
    {{ end }}
{{ range where .Data.Pages "Section" "games" }}
    <item>
      <title>{{ .Title }}</title>
      <link>{{ .Permalink }}</link>
      <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 MST" }}</pubDate>
      <author>{{ .Params.Author }}</author>
      <guid>{{ .Permalink }}</guid>
      <description>{{ .Summary | html }}</description>
    </item>     </item>
    {{ end }}     {{ end }}
  </channel>   </channel>