diff --git a/content/_index.md b/content/_index.md index cd08a89..ac26f31 100644 --- a/content/_index.md +++ b/content/_index.md @@ -21,7 +21,7 @@ That healthy cocktail left a lasting impression - and netted me the Codex (and g > Stay Awhile and Listen! -- Looking for something specific? **[Browse the Appendix](/tags)**. +- **Looking for something** specific? Browse by [all games](/games) | [per platform](/platforms) | [the appendix](/tags). - Want to stay up to date? **[Subscribe to the RSS feed](/index.xml)**. --- diff --git a/content/articles/wario-land.md b/content/articles/wario-land.md index 4c337f7..2181d7a 100644 --- a/content/articles/wario-land.md +++ b/content/articles/wario-land.md @@ -3,6 +3,9 @@ image: "img/articles/warioland.gif" date: "2018-05-27" title: "Wario Land: a Retrospective" game_platform: gbc +game_name: "Wario Land 3" +game_release_year: 2000 +game_developer: 'Nintendo' tags: - 'Super Mario Land 3: Super Wario Land' - 'Wario Land II' diff --git a/content/games/_index.md b/content/games/_index.md index cf7a0da..04fb488 100644 --- a/content/games/_index.md +++ b/content/games/_index.md @@ -3,3 +3,6 @@ title: Games ignore: true --- +This is the entire Codex game database, unfiltered. + +Browse the Codex: [all games](/games) | [by platform](/platforms) | [the appendix](/tags). \ No newline at end of file diff --git a/content/games/alfred-chicken.md b/content/games/alfred-chicken.md new file mode 100644 index 0000000..f5c3970 --- /dev/null +++ b/content/games/alfred-chicken.md @@ -0,0 +1,14 @@ +--- +title: "Alfred Chicken" +date: 2022-04-08 +game_platform: gb +score: 3 +cost: 13 +howlongtobeat_id: 337 +howlongtobeat_hrs: 3 +game_name: 'Alfred Chicken' +game_genre: '2D Platformer' +game_release_year: 1993 +game_developer: 'Twilight' +--- + diff --git a/content/games/irony-curtain.md b/content/games/irony-curtain.md index 94dc2b2..cd866b3 100644 --- a/content/games/irony-curtain.md +++ b/content/games/irony-curtain.md @@ -5,6 +5,7 @@ score: 4 howlongtobeat_id: 67275 howlongtobeat_hrs: 8.5 game_name: 'Irony Curtain' +game_release_year: 2019 game_developer: 'Artifex Mundi' game_platform: 'switch' game_genre: 'adventure' diff --git a/content/games/super-metroid.md b/content/games/super-metroid.md index cdfc69a..57cff2e 100644 --- a/content/games/super-metroid.md +++ b/content/games/super-metroid.md @@ -5,7 +5,7 @@ howlongtobeat_id: 9390 howlongtobeat_hrs: 7.5 game_name: Super Metroid game_platform: SNES -game_year: 1994 +game_release_year: 1994 score: 5 game_developer: Nintendo game_genre: metroidvania diff --git a/content/games/titan-quest.md b/content/games/titan-quest.md index 8d3a0d3..e50eada 100644 --- a/content/games/titan-quest.md +++ b/content/games/titan-quest.md @@ -13,7 +13,7 @@ score: 2 howlongtobeat_hrs: 25.5 game_name: 'Titan Quest' game_genre: 'Hack and Slash' -game_release_year: '2006 (2018)' +game_release_year: 2006 game_developer: 'Iron Lore Entertainment' --- diff --git a/content/tags/_index.md b/content/tags/_index.md index 804b6cf..eeb3e93 100644 --- a/content/tags/_index.md +++ b/content/tags/_index.md @@ -4,4 +4,5 @@ aliases: - /appendix --- -Browse [by platform](#byplatform), [by game/tag](#bytag), or by [by article](#byarticle). +The appendix [by platform](#byplatform), [by game/tag](#bytag), or by [by article](#byarticle).
+See also: browse by [all games](/games) | [per platform](/platforms) | [the appendix](/tags). diff --git a/static/img/hltb/337.jpg b/static/img/hltb/337.jpg new file mode 100644 index 0000000..e3ec1e6 Binary files /dev/null and b/static/img/hltb/337.jpg differ diff --git a/themes/jefklak-creative-portfolio/assets/sass/_codex.sass b/themes/jefklak-creative-portfolio/assets/sass/_codex.sass index ea4cb84..85cb785 100644 --- a/themes/jefklak-creative-portfolio/assets/sass/_codex.sass +++ b/themes/jefklak-creative-portfolio/assets/sass/_codex.sass @@ -75,7 +75,7 @@ h3, .h3 margin-bottom: 2rem h4, .h4 - font-size: 1.4rem + font-size: 1.2rem font-weight: 700 ul, ol @@ -314,6 +314,7 @@ a:hover, .box-masonry h4 a:hover, .link:hover .score border: none + width: 1em &-on opacity: 1 &-off diff --git a/themes/jefklak-creative-portfolio/assets/sass/_grid.sass b/themes/jefklak-creative-portfolio/assets/sass/_grid.sass new file mode 100644 index 0000000..3701309 --- /dev/null +++ b/themes/jefklak-creative-portfolio/assets/sass/_grid.sass @@ -0,0 +1,19 @@ + +.gamegrid + display: grid + margin-bottom: 2rem + grid-template-columns: repeat(auto-fill, minmax(10em, 1fr)) + column-gap: 1em + row-gap: 1.2em + + * + margin-block-start: 0.6rem + + .screenshot + max-inline-size: 100% + block-size: auto + height: 30vh + object-fit: cover + + p + margin: 0 diff --git a/themes/jefklak-creative-portfolio/assets/sass/main.sass b/themes/jefklak-creative-portfolio/assets/sass/main.sass index 45fadb6..b5bba4d 100644 --- a/themes/jefklak-creative-portfolio/assets/sass/main.sass +++ b/themes/jefklak-creative-portfolio/assets/sass/main.sass @@ -3,4 +3,5 @@ @import 'codex' @import 'sidebar' @import 'toot' -@import 'icons' \ No newline at end of file +@import 'icons' +@import 'grid' diff --git a/themes/jefklak-creative-portfolio/layouts/_default/rss.xml b/themes/jefklak-creative-portfolio/layouts/_default/rss.xml index a60a933..abac3b5 100644 --- a/themes/jefklak-creative-portfolio/layouts/_default/rss.xml +++ b/themes/jefklak-creative-portfolio/layouts/_default/rss.xml @@ -29,7 +29,7 @@ {{ printf "" .Permalink .MediaType | safeHTML }} {{ end }} {{ range $pages }} - {{ if in $allowedRssSections .Section }} + {{ if and (in $allowedRssSections .Section) (gt (len .Content) 1) }} {{ .Title }} {{ .Permalink }} diff --git a/themes/jefklak-creative-portfolio/layouts/_default/single.html b/themes/jefklak-creative-portfolio/layouts/_default/single.html index 759bfcd..4e86c5f 100644 --- a/themes/jefklak-creative-portfolio/layouts/_default/single.html +++ b/themes/jefklak-creative-portfolio/layouts/_default/single.html @@ -27,33 +27,13 @@
- {{ .Content | safeHTML }} - - {{ if isset $.Params "score" }} -

- {{ $score := $.Params.score }} - Final verdict: {{ $score }}/5 - {{ range after 0 (seq $score)}} - - {{ end }} - {{ range after 0 (seq (sub 5 $score))}} - - {{ end }} - {{ if eq $score 5 }} - It was amazing! - {{ else if eq $score 4 }} - I really liked it! - {{ else if eq $score 3 }} - I liked it. - {{ else if eq $score 2 }} - It was OK. - {{ else if eq $score 1 }} - I did not like it. - {{ else }} - Horrible. - {{ end}} -

+ {{ with .Content }} + {{ . | safeHTML }} + {{ else }} +

No detailed review yet. Check back soon!

{{ end }} + + {{ partial "score" . }}
{{ if isset $.Params "played_on" }} diff --git a/themes/jefklak-creative-portfolio/layouts/games/list.html b/themes/jefklak-creative-portfolio/layouts/games/list.html new file mode 100644 index 0000000..b161571 --- /dev/null +++ b/themes/jefklak-creative-portfolio/layouts/games/list.html @@ -0,0 +1,3 @@ +{{ define "main" }} + {{ partial "portfoliolite.html" . }} +{{ end }} \ No newline at end of file diff --git a/themes/jefklak-creative-portfolio/layouts/partials/portfolio-block.html b/themes/jefklak-creative-portfolio/layouts/partials/portfolio-block.html index 6f48274..047650e 100644 --- a/themes/jefklak-creative-portfolio/layouts/partials/portfolio-block.html +++ b/themes/jefklak-creative-portfolio/layouts/partials/portfolio-block.html @@ -39,8 +39,15 @@

{{ if .Description }} {{ .Description }} - {{ else }} + {{ else if .Summary }} {{ .Summary }} + {{ else }} +

+ A {{ .Params.game_genre }} game on the {{ .Params.game_platform }} By {{ .Params.game_developer }} in {{ .Params.game_release_year }} that takes about {{ .Params.howlongtobeat_hrs }} hour(s) to beat. +

+

+ {{ partial "score" . }} +

{{ end }}

diff --git a/themes/jefklak-creative-portfolio/layouts/partials/portfolio.html b/themes/jefklak-creative-portfolio/layouts/partials/portfolio.html index ef3884e..f0eba10 100644 --- a/themes/jefklak-creative-portfolio/layouts/partials/portfolio.html +++ b/themes/jefklak-creative-portfolio/layouts/partials/portfolio.html @@ -16,7 +16,9 @@ {{ range (.Paginate .Pages).Pages }} - {{ partial "portfolio-block.html" . }} + {{ if gt (len .Content) 1 }} + {{ partial "portfolio-block.html" . }} + {{ end }} {{ end }}
diff --git a/themes/jefklak-creative-portfolio/layouts/partials/portfoliolite-block.html b/themes/jefklak-creative-portfolio/layouts/partials/portfoliolite-block.html new file mode 100644 index 0000000..84c7b7b --- /dev/null +++ b/themes/jefklak-creative-portfolio/layouts/partials/portfoliolite-block.html @@ -0,0 +1,35 @@ +
+ + {{ $thumb := "/img/logo.png" | absURL }} + {{ if .Params.image }} + {{ $thumb = .Params.image | absURL }} + {{ else if .Params.howlongtobeat_id }} + {{ $thumb = printf "%s%d%s" "img/hltb/" .Params.howlongtobeat_id ".jpg" | absURL }} + {{ else }} + + {{ $perm := .Permalink }} + {{ $base := .Site.BaseURL }} + {{ $match := findRE `!\[(.*)\]\((.+).(jpg|png|gif)` .RawContent 1 }} + {{ range $match }} + {{ $relthumb := replaceRE `!\[(.*)\]\(` "" . }} + {{ if hasPrefix $relthumb "/" }} + {{ $thumb = printf "%s%s" $base $relthumb }} + {{ else }} + {{ $thumb = printf "%s%s" $perm $relthumb }} + {{ end }} + {{ end }} + {{ end }} + thumbnail of {{ .Params.game_name }} + +

{{ .Params.game_name }}

+
+

+ {{ .Params.game_developer }} ({{ .Params.game_release_year }})
+ {{ with .Params.howlongtobeat_hrs }} + {{ . }} hr{{ if gt . 1}}s{{ end }}. + {{ end }} +

+ {{ .Scratch.Set "simplescore" 1 }} + {{ partial "score" . }} +
+
diff --git a/themes/jefklak-creative-portfolio/layouts/partials/portfoliolite.html b/themes/jefklak-creative-portfolio/layouts/partials/portfoliolite.html new file mode 100644 index 0000000..4676d48 --- /dev/null +++ b/themes/jefklak-creative-portfolio/layouts/partials/portfoliolite.html @@ -0,0 +1,23 @@ +
+ {{ partial "mobile_nav_toggle.html" . }} + +
+ + + +
+ {{ .Content }} +
+ +

Game Codex »

+ +
+ {{ range .Pages }} + {{ partial "portfoliolite-block.html" . }} + {{ end }} +
+ + +
+
+
diff --git a/themes/jefklak-creative-portfolio/layouts/partials/score.html b/themes/jefklak-creative-portfolio/layouts/partials/score.html new file mode 100644 index 0000000..c09ae15 --- /dev/null +++ b/themes/jefklak-creative-portfolio/layouts/partials/score.html @@ -0,0 +1,33 @@ +{{ $simplescore := $.Scratch.Get "simplescore" }} +{{ if isset $.Params "score" }} +

+ {{ $score := $.Params.score }} + {{ if eq $simplescore 1 }} + {{ else }} + Verdict: {{ $score }}/5 + {{ end }} + {{ range after 0 (seq $score)}} + + {{ end }} + {{ range after 0 (seq (sub 5 $score))}} + + {{ end }} + + {{ if eq $simplescore 1 }} + {{ else }} + {{ if eq $score 5 }} + It was amazing! + {{ else if eq $score 4 }} + I really liked it! + {{ else if eq $score 3 }} + I liked it. + {{ else if eq $score 2 }} + It was OK. + {{ else if eq $score 1 }} + I did not like it. + {{ else }} + Horrible. + {{ end}} + {{ end }} +

+{{ end }} diff --git a/themes/jefklak-creative-portfolio/layouts/partials/sidebar.html b/themes/jefklak-creative-portfolio/layouts/partials/sidebar.html index b3dc6a9..4a4b21c 100644 --- a/themes/jefklak-creative-portfolio/layouts/partials/sidebar.html +++ b/themes/jefklak-creative-portfolio/layouts/partials/sidebar.html @@ -36,7 +36,11 @@  How long to beat {{ end }} {{ with .Params.howlongtobeat_hrs }} - : {{ . }} hours
+ : {{ . }} hr{{ if gt . 1}}s{{ end }}
+ {{ end }} + {{ $name := .Params.game_name }} + {{ with .Params.cost }} +  Game Value: €{{ . }}
{{ end }}

@@ -68,7 +72,7 @@ {{ end }}