A fast, clean, responsive and hardened Hugo theme.
Go to file
Wonderfall bbfb6f518d
Merge pull request #3 from jonaharagon/no-popups
Remove target="_blank" from links
2022-09-02 00:30:04 +02:00
.github Merge branch 'adityatelange:master' into master 2022-08-22 14:14:38 +02:00
assets Merge branch 'adityatelange:master' into master 2022-08-22 14:14:38 +02:00
i18n Add more ja translations (#1004) 2022-08-12 19:42:09 +05:30
images images: update 2020-09-25 13:35:31 +05:30
layouts Remove target="_blank" from links 2022-08-31 20:57:32 -05:00
go.mod built-in Chroma 2022-07-24 01:39:42 +02:00
LICENSE Update LICENSE 2022-04-30 09:35:10 +05:30
Makefile built-in Chroma 2022-07-24 01:39:42 +02:00
README.md fix README 2022-08-23 13:24:00 +02:00
theme.toml update theme.toml 2022-07-23 04:18:44 +02:00

WonderMod (PaperMod fork - theme for Hugo)

WonderMod image

What is this?

WonderMod is a fork of an original theme for Hugo called PaperMod (made by adityatelange). Since PaperMod isn't interested in a few changes such as removing inline JavaScript, which I personally require to harden my websites, I decided to maintain my own fork (I didn't want to keep overwriting a bunch of files as a fork workflow is much cleaner). Don't expect a ton of changes, and unless you know me, you probably don't want to use WonderMod.

When implementing new features, I try to do as much as I can with pure CSS code instead of adding new JavaScript code. I'd like to keep the JavaScript part minimal and that's why WonderMod should be totally usable when disabling JavaScript. WonderMod is also designed with strong CSP headers in mind: no inline JavaScript or style, no calls to third-parties.

Main changes

Current "main" changes are as follows:

  • Remove inline JavaScript (2528906)
  • Improved YouTube shortcode (4dc3bee)
  • Built-in Chroma instead of client-side syntax highlighting with HLJS (841141)
  • Responsive Table of Contents with side display support (2303605)
  • Responsive "hamburger" menu for mobile (723ac4f)
  • Simple reading progress bar (13876be)
  • Bunch of CSS and other changes (see commit history)

Credits

Additional credits:

Configure

Most of the installation process and settings are shared with the original PaperMod, so check out their documentation. One noticeable difference though is that in order to enable syntax highlighting, you have to add this to your config.yml :

markup:
    highlight:
        style: dracula
        noClasses: false
        guessSyntax: true

See Hugo documentation for more options. Note: for some reason, the guessSyntax doesn't actually work but is required. Please make your code fences explicit for the time being.