26a6a0a7cd
* Check if commentoUrl is set before using it. When a variable does not exist it evaluates to `nil`, and so the check `(not (eq .Site.Params.commentoUrl ""))` evaluates to true rather than false because `nil` is not "". Before this change, unless you explicitly set Params.commentoUrl to "", the commento HTML block would be added, and this fails because /js/commento.js does not exist. This change ensures that the commento HTML block is only added whe Params.commentoUrl exists and is set to a non-empty string. * Check if DisqusShortname is set before using it. |
||
---|---|---|
.github | ||
archetypes | ||
assets/scss | ||
exampleSite | ||
i18n | ||
images | ||
layouts | ||
resources/_gen/assets/scss/scss | ||
static/images | ||
.editorconfig | ||
.gitignore | ||
CONTRIBUTORS.md | ||
LICENSE.md | ||
Makefile | ||
README.md | ||
netlify.toml | ||
theme.toml |
README.md
A simple and clean blog theme for Hugo.
Quick Start
- Add the repository into your Hugo Project repository as a submodule,
git submodule add https://github.com/luizdepra/hugo-coder.git themes/hugo-coder
. - Configure your
config.toml
. You can either use the this minimal configuration as a base, or look for a complete explanation about all configurations here. Theconfig.toml
inside theexampleSite
is also a good reference. - Build your site with
hugo serve
and see the result athttp://localhost:1313/
.
Extra Guides
License
Coder is licensed under the MIT license.
Maintenance
This theme is maintained by its author Luiz de Prá with the help from these awesome contributors.
Special Thanks
- Gleen McComb, for his great article about custom pagination.
- All contributors, for every PR and Issue reported.