Fork of hemingway w/ updates, mastodon comments, and more pedantic HTML output
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 42 commits ahead of tanksuzuki:master.
julian-klode saas: pre code should not have a padding
pre code having a padding means the first line is indented more
than other lines, which is obviously wrong.
Latest commit 9c90997 Oct 25, 2018

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