mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-11-22 02:21:37 +01:00
1.4 KiB
1.4 KiB
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.
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 (see documentation)
- Bunch of CSS and other changes (see commit history)
Additional credits:
- PaperModX by reorx
To enable syntax highlighting, put this in your config.yml
:
markup:
highlight:
style: dracula
noClasses: false
https://gohugo.io/getting-started/configuration-markup#highlight