diff --git a/config.toml b/config.toml index a700d3b..9d6b9d6 100644 --- a/config.toml +++ b/config.toml @@ -10,6 +10,9 @@ enableRobotsTXT = true summaryLength = 20 paginate = 20 +[services.rss] + limit = 50 + [Author] name = "Jefklak" email = "jef@jefklakscodex.com" diff --git a/themes/jefklak-creative-portfolio/assets/sass/_codex.sass b/themes/jefklak-creative-portfolio/assets/sass/_codex.sass index aafa1c8..55933d4 100644 --- a/themes/jefklak-creative-portfolio/assets/sass/_codex.sass +++ b/themes/jefklak-creative-portfolio/assets/sass/_codex.sass @@ -107,7 +107,7 @@ hr border-top: 1px solid var(--accent) -#csslink +#rsslink position: absolute right: 0 z-index: 99 diff --git a/themes/jefklak-creative-portfolio/layouts/_default/baseof.html b/themes/jefklak-creative-portfolio/layouts/_default/baseof.html index 26e1f1e..cb66e6d 100644 --- a/themes/jefklak-creative-portfolio/layouts/_default/baseof.html +++ b/themes/jefklak-creative-portfolio/layouts/_default/baseof.html @@ -9,11 +9,9 @@ skip to main content - {{ with .OutputFormats.Get "RSS" }} - - - - {{ end }} + + +
By {{ .Site.Author.name }} on .
+ {{ if .Params.game_name }} +
+ {{ with .Params.game_platform }}
+ Played on: {{ . }}
+ {{ end }}
+ {{ with .Params.game_genre }}
+ {{ $tag := replaceRE `\s` "-" . }}
+ Genre: {{ . }}
+ {{ end }}
+ {{ with .Params.game_release_year }}
+ Release year: {{ . }}
+ {{ end }}
+ {{ with .Params.game_developer }}
+ Developer: {{ . }}
+ {{ end }}
+ {{ with .Params.howlongtobeat_hrs }}
+ How long to beat: {{ . }}
hours
+ {{ end }}
+
+ {{ $thumb := "" }}
+ {{ if .Params.image }}
+ {{ $thumb = .Params.image }}
+ {{ else }}
+ {{ if .Params.howlongtobeat_id }}
+ {{ $thumb = printf "%s%d%s" "img/hltb/" .Params.howlongtobeat_id ".jpg" }}
+ {{ end }}
+ {{ end }}
+ {{ if ne $thumb "" }}
+
+ {{ end }}
+