Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

ouuan/hugo-theme-even

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hugo-theme-even

GitHub contributors 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/ouuan/hugo-theme-even themes/even

If your blog is a git repository, you'd better use submodules:

git submodule add https://github.com/ouuan/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.

Important: This theme uses Hugo Pipes. Modifying contents in assets requires the extended version to be installed.

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.

Language selector

It is possible to enable language selector for multilingual site. It will be displayed in the header or in the slide menu.

To enable it, set showLanguageSelector parameter to true.

showLanguageSelector = true

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.

  • 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 here.

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 /assets/sass/_variable.scss.

Update Theme

cd themes/even
git pull

If you are using it as a submodule, you can also:

git submodule update --remote

License

Released under the MIT License.

Acknowledgements

About

🚀 A super concise theme for Hugo https://blog.olowolo.com/example-site/

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • SCSS 50.8%
  • HTML 37.2%
  • JavaScript 8.4%
  • XSLT 3.5%
  • Makefile 0.1%