From e61a74aaba15f6fabab941c33f8f63ca69eaa56c Mon Sep 17 00:00:00 2001 From: wgroeneveld Date: Mon, 25 May 2020 09:17:26 +0200 Subject: [PATCH] sidebar redesign layout, js includes herwerken --- config.toml | 13 +- content/articles/_index.md | 10 +- content/articles/animalcrossing-features.md | 12 +- .../articles/animalcrossing-newhorizons.md | 2 +- content/articles/animalcrossing-wildworld.md | 2 +- content/tags/_index.md | 6 +- layouts/_default/terms.html | 6 +- layouts/partials/articlelist.html | 15 +- .../partials/google-analytics-anonymous.html | 8 - layouts/partials/head.html | 4 +- layouts/partials/portfolio.html | 6 - layouts/partials/scripts.html | 6 - layouts/partials/sidebar.html | 65 +++--- static/css/custom.css | 197 +++++++++++++----- static/img/3ds.png | Bin 0 -> 12965 bytes static/img/ds.png | Bin 20751 -> 20850 bytes static/img/games/ac/ac-statue.jpg | Bin 0 -> 37004 bytes static/img/games/ac/acgc.jpg | Bin 0 -> 136654 bytes static/img/gb.png | Bin 129596 -> 59509 bytes static/img/gba.png | Bin 97493 -> 49289 bytes static/img/gbc.png | Bin 110577 -> 54809 bytes static/img/gc.png | Bin 0 -> 29607 bytes static/img/switch.png | Bin 40027 -> 21191 bytes static/js/codex.js | 71 ++++--- .../static/js/front.js | 4 +- .../static/js/jquery.scrollTo.min.js | 7 - 26 files changed, 279 insertions(+), 155 deletions(-) delete mode 100644 layouts/partials/google-analytics-anonymous.html create mode 100644 static/img/3ds.png create mode 100644 static/img/games/ac/ac-statue.jpg create mode 100644 static/img/games/ac/acgc.jpg create mode 100644 static/img/gc.png delete mode 100644 themes/hugo-creative-portfolio-theme/static/js/jquery.scrollTo.min.js diff --git a/config.toml b/config.toml index c75de6e..4c89c38 100644 --- a/config.toml +++ b/config.toml @@ -9,6 +9,8 @@ enableEmoji = true # for .Lastmod to work with .GitInfo: --enableGitInfo https://gohugo.io/variables/git/ enableGitInfo = true +summaryLength = 20 + [Author] name = "Wouter Groeneveld" email = "wouter.groeneveld@gmail.com" @@ -23,7 +25,7 @@ enableGitInfo = true description = "Retro game thoughts" copyright = "No © reserved - sharing is caring. Hack away!
An integral part of Brain Baking." sidebarAbout = [ - "You’re looking at “The Codex”, a dedicated and highly opinionated website about nostalgic games that left a lasting impression on me." + "You’re browsing “The Codex”, a dedicated and highly opinionated website about nostalgic games that left a lasting impression on me." ] # Nav links in the side bar @@ -40,3 +42,12 @@ enableGitInfo = true name = "About the Codex" url = "about/" +[privacy] + [privacy.googleAnalytics] + anonymizeIP = true + disable = false + respectDoNotTrack = false + useSessionStorage = false + [privacy.youtube] + disable = false + privacyEnhanced = true diff --git a/content/articles/_index.md b/content/articles/_index.md index 3369d1f..fbe86e1 100644 --- a/content/articles/_index.md +++ b/content/articles/_index.md @@ -2,7 +2,13 @@ title = "Jefklak's Retro Gaming Codex" +++ -** Codex |  Articles |  Guides |  Reviews.** + Codex |  Articles |  Guides |  Reviews. +
You're looking at Jefklak's (Retro [Game](/tags)) Codex, a dedicated and highly opinionated website about nostalgic games. A lovely mix between Nintendo handheld gaming love, '90s DOS games and old school PC RPGs that were an integral part of [my youth](/about).
-That healthy cocktail left a lasting impression - and netted me the Codex (and glasses). A lot of articles have been carefully restored from the black depths of the Jefklak Archive for your entertainment. As [Deckard Cain](https://www.youtube.com/watch?v=tAVVy_x3Erg) would have said it: **Stay Awhile and Listen**! +That healthy cocktail left a lasting impression - and netted me the Codex (and glasses). A lot of articles have been carefully restored from the black depths of the Jefklak Archive for your entertainment. As [Deckard Cain](https://www.youtube.com/watch?v=tAVVy_x3Erg) would have said it: + +> Stay Awhile and Listen! + +#### Looking for something specific? [Browse the Appendix](/tags). + diff --git a/content/articles/animalcrossing-features.md b/content/articles/animalcrossing-features.md index 1e4ee03..194cb0c 100644 --- a/content/articles/animalcrossing-features.md +++ b/content/articles/animalcrossing-features.md @@ -1,14 +1,14 @@ +++ showonlyimage = false draft = false -imageActive = "gif/acnh.gif" -image = "gif/acnh_still.gif" +imageActive = "/img/games/ac/acgc.jpg" +image = "/img/games/ac/acgc.jpg" date = "2020-05-24" title = "31 Animal Crossing GCN Features that (never?) returned" tags = ['Animal Crossing'] -game_name = 'Animal Crossing: New Horizons' -Description = 'It is a fresh breeze indeed as the Island unfolds, buildings appear, and I sweat my ass off trying to collect enough lumber and clay to satisfy even the most grumpy of Tom Nooks. Welcome to the latest installment of Animal Crossing!' -game_platform = 'switch' +game_name = 'Animal Crossing' +description = 'Which features from previous Animal Crossing games do you wish were present in the Switch one? Some features never made the jump to a new iteration. Let us take a closer look.' +game_platform = 'gc' game_genre = 'Life sim' game_release_year = '2020' game_developer = 'Nintendo' @@ -30,7 +30,7 @@ Jeff is still playing the original Gamecube version of Animal Crossing - anno 20 - 12. **Cherry blossom festival** - Yes! It just passed in April. - 24. **Catching Wisp's spirits**. He's grateful and gives an item in exchange, but I can't remember which one it was... I might have sold it. Whoops. -[![golden statue](https://www.jvgs.net/acblog/wp-content/uploads/2018/05/ac-statue-31.jpg)](https://www.jvgs.net/acblog/2018/05/25/31-features/#comment-7281) +[![golden statue](/img/games/ac/ac-statue.jpg)](https://www.jvgs.net/acblog/2018/05/25/31-features/#comment-7281) Too bad no statue will be built in New Horizons... diff --git a/content/articles/animalcrossing-newhorizons.md b/content/articles/animalcrossing-newhorizons.md index 7a497a2..2d992d9 100644 --- a/content/articles/animalcrossing-newhorizons.md +++ b/content/articles/animalcrossing-newhorizons.md @@ -7,7 +7,7 @@ date = "2020-04-05" title = "Animal Crossing: New Horizons Adventure Blog" tags = ['Animal Crossing'] game_name = 'Animal Crossing: New Horizons' -Description = 'It is a fresh breeze indeed as the Island unfolds, buildings appear, and I sweat my ass off trying to collect enough lumber and clay to satisfy even the most grumpy of Tom Nooks. Welcome to the latest installment of Animal Crossing!' +description = 'It is a fresh breeze indeed as the Island unfolds, buildings appear, and I sweat my ass off trying to collect enough lumber and clay to satisfy even the most grumpy of Tom Nooks. Welcome to the latest installment of Animal Crossing!' game_platform = 'switch' game_genre = 'Life sim' game_release_year = '2020' diff --git a/content/articles/animalcrossing-wildworld.md b/content/articles/animalcrossing-wildworld.md index 456edee..0f1ecad 100644 --- a/content/articles/animalcrossing-wildworld.md +++ b/content/articles/animalcrossing-wildworld.md @@ -7,7 +7,7 @@ date = "2006-10-01" title = "Animal Crossing: Wild World Adventure Blog" tags = ['Animal Crossing'] game_name = 'Animal Crossing: Wild World' -Description = 'It is a wild world indeed as the Acorn festival is about to start. Should I exchange some acorns ro net me a chair so I can gift Drift something for his birthday? What to do!' +description = 'It is a wild world indeed as the Acorn festival is about to start. Should I exchange some acorns ro net me a chair so I can gift Drift something for his birthday? What to do!' game_platform = 'ds' game_genre = 'Life sim' game_release_year = '2005' diff --git a/content/tags/_index.md b/content/tags/_index.md index 3a1f5a6..627027a 100644 --- a/content/tags/_index.md +++ b/content/tags/_index.md @@ -1,7 +1,9 @@ +++ title = "Jefklak's Codex: Appendix" +++ - -### Codex Appendix +![logo](/img/logo.png) +## Codex Appendix + +Browse [by article](#byarticle) or [by tag](#bytag) (game). diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html index 98ae305..7a25bfe 100644 --- a/layouts/_default/terms.html +++ b/layouts/_default/terms.html @@ -22,19 +22,19 @@
{{ partial "mobile_nav_toggle.html" . }} - {{ .Content }}
+ {{ .Content }}
-

By Article

+

By Article


{{ with .Site.GetPage "section" "articles" }} {{ partial "articlelist.html" . }} {{ end }} -

By Tag

+

By Tag

{{ partial "taglist.html" . }}
diff --git a/layouts/partials/articlelist.html b/layouts/partials/articlelist.html index 32dc98b..dafb48c 100644 --- a/layouts/partials/articlelist.html +++ b/layouts/partials/articlelist.html @@ -10,10 +10,17 @@ {{ .Title }} {{ with .Params.archived }} Archived - {{ end }} - {{ with .Description }} -
{{ . }} - {{ end }} + {{ end }} +
+ {{- if isset .Params "description" }} + {{ with .Description }} + {{ . }} + {{ end }} + {{- else }} + {{ with .Summary }} + {{ . }} + {{ end }} + {{- end }} {{ end }} diff --git a/layouts/partials/google-analytics-anonymous.html b/layouts/partials/google-analytics-anonymous.html deleted file mode 100644 index 24dcd33..0000000 --- a/layouts/partials/google-analytics-anonymous.html +++ /dev/null @@ -1,8 +0,0 @@ - - - \ No newline at end of file diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 4fd89a7..abd7b23 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -120,4 +120,6 @@ body, .content-column-content, h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, {{ end }} -{{ partial "google-analytics-anonymous.html" . }} +{{- if (ne hugo.Environment "development") }} + {{ template "_internal/google_analytics.html" . }} +{{- end }} diff --git a/layouts/partials/portfolio.html b/layouts/partials/portfolio.html index 9bd9a68..5ba8f10 100644 --- a/layouts/partials/portfolio.html +++ b/layouts/partials/portfolio.html @@ -42,12 +42,6 @@ {{ end }}
-

Looking for more?

- - Browse the Appendix
- About the Codex - -
diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html index 4031737..037d53d 100644 --- a/layouts/partials/scripts.html +++ b/layouts/partials/scripts.html @@ -2,13 +2,7 @@ - - - - - - diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index 9b90bfa..e80fe32 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -1,43 +1,13 @@ {{ $url := .Site.BaseURL }}