From 1bdc35624465624b537fc1dddab3745bb11580bf Mon Sep 17 00:00:00 2001 From: chris062689 Date: Thu, 1 Jun 2017 18:31:46 -0400 Subject: [PATCH] Updated base template and rss to include games metadata. --- .../layouts/_default/baseof.html | 2 +- site/themes/citra-bs-theme/layouts/rss.xml | 22 ++++++++++++++++++- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/site/themes/citra-bs-theme/layouts/_default/baseof.html b/site/themes/citra-bs-theme/layouts/_default/baseof.html index d045e78..d3a3d15 100755 --- a/site/themes/citra-bs-theme/layouts/_default/baseof.html +++ b/site/themes/citra-bs-theme/layouts/_default/baseof.html @@ -21,7 +21,7 @@         - {{ if (eq .Section "entry") | or (eq .Section "wiki") }} + {{ if (eq .Section "entry") | or (eq .Section "wiki") | or (eq .Section "games") }}    diff --git a/site/themes/citra-bs-theme/layouts/rss.xml b/site/themes/citra-bs-theme/layouts/rss.xml index ff10d41..74f49a2 100644 --- a/site/themes/citra-bs-theme/layouts/rss.xml +++ b/site/themes/citra-bs-theme/layouts/rss.xml @@ -13,8 +13,28 @@       {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 MST" }}       {{ .Params.Author }}       {{ .Permalink }} -      {{ .Content | html }} +      {{ .Summary | html }}          {{ end }} + {{ range where .Data.Pages "Section" "wiki" }} +      +       {{ .Title }} +       {{ .Permalink }} +       {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 MST" }} +       {{ .Params.Author }} +       {{ .Permalink }} +       {{ .Summary | html }} +      +     {{ end }} + {{ range where .Data.Pages "Section" "games" }} +      +       {{ .Title }} +       {{ .Permalink }} +       {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 MST" }} +       {{ .Params.Author }} +       {{ .Permalink }} +       {{ .Summary | html }} +      +     {{ end }}