Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit

### Prerequisites

Put an `x` into the box(es) that apply:

- [x] This pull request fixes a bug.
- [ ] This pull request adds a feature.
- [ ] This pull request introduces breaking change.

### Description

This PR fixes a bug that causes inconsistencies between the themes used
by the website and the utterances comments section.

If the website theme is set automatically and the user is in dark mode,
utterances will use light mode.

This is because the `colorscheme` parameter in localStorage is not set
until the button to switch themes is used, and if this parameter is not
set, utterances displays the light theme by default.

Steps to reproduce:
1. Use dark mode on your system
2. Load a website with "utterances" comment section enabled
3. See that although your website is in dark mode, utterances uses light

### Issues Resolved


Git stats


Failed to load latest commit information.

Hugo Theme Badge MIT License Badge

Hugo Coder Logo

A simple and clean blog theme for Hugo.

Live Demo

See here.

Quick Start

  1. Add the repository into your Hugo Project repository as a submodule, git submodule add themes/hugo-coder.
  2. Configure your config.toml. You can either use this minimal configuration as a base, or look for a complete explanation about all configurations here. The config.toml inside the exampleSite is also a good reference.
  3. Build your site with hugo server and see the result at http://localhost:1313/.


See the docs folder.


Coder is licensed under the MIT license.


This theme is maintained by its author Luiz de Prá with the help from these awesome contributors.


If you like my project or it was useful for you, consider supporting its development. Just:

Buy Me A Coffee

Special Thanks

  • Gleen McComb, for his great article about custom pagination.
  • All contributors, for every PR and Issue reported.