That project is a try to build a Hugo module by porting Jekyll Microtypo
hugo mod init
and the URL of your repository at the root of your project:hugo mod init github.com/username/repository
It should create a go.mod
file.
TOML example:
[module]
[[module.imports]]
path="github.com/jygastaud/hugo-microtypo/microtypo"
disable=false
YAML example:
module:
imports:
- path: github.com/jygastaud/hugo-microtypo/microtypo
disable: false
hugo mod get github.com/jygastaud/hugo-microtypo/microtypo
{{ .Content }}
call by {{ partial "content.html" .Content }}
You can also use the content.html partial to replace any variable such as: .Summary
...
Some examples:
{{ partial "content.html" .Content }}
{{ partial "content.html" .Summary }}
A new params is available to enable/disable usage of aria-hidden when "Point Median" is used.
Default to false
.
To change that value, add a new param pointMedian = true
inside your config.toml.
Note that we can not guarrenty any maintenance of that plugin (yet) but we will do our best.
Be sure that we would more than happy to review any pull request.
If you need to work locally on the module, you can add that line at the end of your go.mod
file:
replace github.com/jygastaud/hugo-microtypo/microtypo => /<your-path>/hugo-microtypo/microtypo