Add Light/Dark Logo Swap

K so PaperMod comes with a light-mode/dark-mode toggle, but no method for swapping the site’s logo at the same time. I really wanted that, and got it to work after a few hours of tinkering. First, copy these files: themes\PaperMod\layouts\partials\footer.html themes\PaperMod\layouts\partials\header.html to here: layouts\partials\footer.html layouts\partials\header.html In your new footer.html file, add two lines to the site.Params.disableThemeToggle block to make your site load the right logo when the theme is switched....

18 Jul 2022 · 2 min

Reverse PaperMod Nav Links

When running Hugo with the PaperMod theme, the nav links at the bottom of each post seem like they should be reversed. And getting that to happen is super easy! Just copy this file: themes\PaperMod\layouts\partials\post_nav_links.html to here: layouts\partials\post_nav_links.html and just swap lines 4 and 11. Here’s the diff: --- themes\PaperMod\layouts\partials\post_nav_links.html 2022-07-18 09:47:47.635823100 -0700 +++ layouts\partials\post_nav_links.html 2022-07-18 09:56:20.596032400 -0700 @@ -1,14 +1,14 @@ {{- $pages := where site.RegularPages "Type" "in" site....

18 Jul 2022 · 1 min