Skip to content
Fork of hemingway w/ updates, mastodon comments, and more pedantic HTML output
Branch: master
Clone or download
Pull request Compare This branch is 43 commits ahead of tanksuzuki:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
archetypes
assets
exampleSite
images
layouts
sass
static
.gitignore
LICENSE.md
Makefile
README.md
package.json
postcss.config.js
theme.toml

README.md

Ernest

Ernest is a really minimal blog theme for hugo.

Getting Started

Clone this repository to your hugo theme directory.

mkdir themes
cd themes
git clone https://github.com/julian-klode/ernest.git

Differences from Hemingway

  • Support for highlight.js has been removed
  • Support for commenting using mastodon has been added. Just configure your user in the config.toml, put a config.php in the right spot (see static/mastodon/), and then post a toot with a link to your blog entry, and replies to it will be embedded on the page.
  • XHTML-conform output with head and body elements
  • Support for the list.html template
  • In social stuff, fa_icon now needs proper fab or fa attributes

Configuration

Take a look in the exampleSite folder.

This directory contains an example config file and the content for the demo. It serves as an example setup for your documentation.

Copy the config.toml in the root directory of your website. Overwrite the existing config file if necessary.

config.toml:

baseurl = "https://example.com"
languageCode = "en"
title = "Ernest"
theme = "ernest"
copyright = "&copy;  <a href=\"https://github.com/tanksuzuki\">Asuka Suzuki</a> 2016, <a href=\"https://github.com/julian-klode\">Julian Andres Klode</a> 2018"
disqusShortname = "shortname"
googleAnalytics = ""
pygmentsCodeFences = true

[params]
mastodonUser = "juliank"

[[params.social]]
url = "https://github.com/julian-klode"
fa_icon = "fab fa-github"

[[params.social]]
url = "https://twitter.com/julian-klode"
fa_icon = "fab fa-twitter"

[[params.social]]
url = "/index.xml"
fa_icon = "fa fa-rss"

Build

hugo server

You can go to localhost:1313 and this theme should be visible.

License

Ernest is licensed under the MIT License. Server-side scripts for Mastodon integration are AGPL. Vendorized code has its own license, please look in there.

Author

Asuka Suzuki

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.