A super concise theme for Hugo
Find a file
panda-z 4fe268549a fix(*): code font size and extra mathjax scoll bar (#125)
* style(font): use em for responsive code font size

* style(mathjax): avoid extra horizontal scrollbar
2019-02-14 20:50:34 +08:00
archetypes feat(post): add out-of-date content warning (#68) 2018-06-01 00:06:14 +08:00
data/even feat(flowchart): support keyword flow 2018-12-31 20:28:27 +08:00
exampleSite feat(lastmod): use git commit to generate lastmod info (#124) 2019-02-14 20:26:50 +08:00
i18n feat(post): add out-of-date content warning (#68) 2018-06-01 00:06:14 +08:00
images docs: add showcase image, change default qrcode image 2017-09-13 00:25:59 +08:00
layouts feat(lastmod): use git commit to generate lastmod info (#124) 2019-02-14 20:26:50 +08:00
src fix(*): code font size and extra mathjax scoll bar (#125) 2019-02-14 20:50:34 +08:00
static feat(flowchart): support keyword flow 2018-12-31 20:28:27 +08:00
.babelrc chore(build): upgrade build dependencies 2018-11-05 19:53:10 +08:00
.gitignore chore(ignore): ignore .map file 2018-12-31 20:25:14 +08:00
CHANGELOG.md chore(*): release 4.0.0 2018-11-06 19:00:57 +08:00
LICENSE.md 🎉 first commit 2017-08-27 22:38:42 +08:00
package.json chore(build): upgrade build dependencies 2018-11-05 19:53:10 +08:00
postcss.config.js chore(build): yarn & webpack 4 & path & assets.json 2018-07-09 15:12:02 +08:00
README-zh.md docs(README): update 2018-11-06 16:59:11 +08:00
README.md docs(README): update 2018-11-06 16:59:11 +08:00
theme.toml chore(hugo): min version 0.50 2018-11-06 17:09:56 +08:00
webpack.config.js chore(build): yarn & webpack 4 & path & assets.json 2018-07-09 15:12:02 +08:00
yarn.lock chore(build): upgrade build dependencies 2018-11-05 19:53:10 +08:00

hugo-theme-even

GitHub contributors GitHub release GitHub commits (since latest release) GitHub

A super concise theme for Hugo

It's a port of the hexo-theme-even

Demo | 中文说明

Screenshots

even-showcase

Installation

$ git clone https://github.com/olOwOlo/hugo-theme-even themes/even

Important: Take a look inside the exampleSite folder of this theme. You'll find a file called config.toml. To use it, copy the config.toml in the root folder of your Hugo site. Feel free to change it.

NOTE: For this theme, you should use post instead of posts, namely hugo new post/some-content.md.

Language Support

Translations are collected from the themes/even/i18n/ folder (built into the theme), as well as translations present in i18n/ at the root of your project. The translations will be merged and take precedence over what is in the theme folder.

To use the translations, just set a correct value for defaultContentLanguage.

defaultContentLanguage = "en"  # en / zh-cn / other...

Can also support any other languages as well. For example, to support german, create a file /i18n/de.yaml in the root folder of your Hugo site. For reference template you can see the en.yaml file.

P.S. In multilingual mode, the language which currently being used to render the website will be used.

Favicon

In order to customize the favicon you need to place all the following files in the static folder at the root of your site, which will overwrite those files in the themes/even/static/ folder.

  • android-chrome-192x192.png
  • android-chrome-512x512.png
  • apple-touch-icon.png
  • browserconfig.xml
  • favicon.ico
  • favicon-16x16.png
  • favicon-32x32.png
  • manifest.json
  • mstile-150x150.png
  • safari-pinned-tab.svg

A favicon generator can help you generate these files.

Front Matter

You can customize something for a single content in the content's front-matter. The themes/even/archetypes/default.md shows all available params. Copy this file in the archetypes folder at the root of your project will be useful.

Shortcodes

This theme provides center, right, left, music, admonition shortcodes, and support center, right, left class for the built-in figure. See more information from there.

Theme Color

There are five built-in theme colors ( Default | Mint Green | Cobalt Blue | Hot Pink | Dark Violet ), you can config it by changing the $theme-color-config value in /src/css/_variable.scss.

Build

If you changed any file under /src/, you need to rebuild.

cd ./themes/even/
# install dependencies
yarn install
# build
yarn build

You need to install Yarn and Node.js first.

Update Theme

cd ./themes/even/
git pull

License

Released under the MIT License.

Acknowledgements