Skip to content
a black-white theme for Hugo.
HTML CSS
Branch: master
Clone or download
Latest commit 4275e6b Sep 7, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
archetypes sync theme yinyang Nov 12, 2018
exampleSite feat: add gallery Sep 7, 2019
images feat: hide author name when empty Aug 27, 2019
layouts feat: refactor gallery Sep 7, 2019
static feat: refactor gallery Sep 7, 2019
LICENSE.md license.md Nov 12, 2018
README.md feat: add gallery Sep 7, 2019
theme.toml rm params in theme Nov 22, 2018

README.md

YinYang

YinYang is a black-white theme for Hugo.

Demo

Feature

Screenshot

Installation

From the root of your site:

git clone git@github.com:joway/hugo-theme-yinyang.git themes/yinyang

Change config.toml:

theme = "yinyang"

Configuration

Head Title

[params]
headTitle = "Joway Wang"

If there is no headTitle in params, use .Site.Author.name.

Main section

Set your main section:

[params]
mainSections = ["posts"]

Multi-Language

[languages]
  [languages.en]
    contentDir = "content/en"
    languageName = "English"
    weight = 1
  [languages.cn]
    contentDir = "content/cn"
    languageName = "Chinese"
    weight = 2

Then your posts files should be put into content/en or content/cn.

Footer

[[params.socials]]
name = "About Me"
link = "https://joway.io"
[[params.socials]]
name = "Github"
link = "https://github.com/joway"

Extra Head

[params]
extraHead = '<script src="xxxx.js"></script>'

Example

baseURL = "https://blog.joway.io/"
languageCode = "en-us"
title = "Joway's Blog"
theme = "yinyang"
DefaultContentLanguage = "cn"

[author]
  name = "Joway"
  homepage = "https://joway.io/"

[languages]
  [languages.en]
    contentDir = "content/en"
    languageName = "English"
    weight = 1
  [languages.cn]
    contentDir = "content/cn"
    languageName = "Chinese"
    weight = 2

[params]
mainSections = ["posts"]
headTitle = "Joway Wang"
disqus = "joway" # disqus account name
extraHead = '<script async src="https://www.googletagmanager.com/gtag/js?id=UA-xxx"></script>'
[[params.socials]]
name = "About Me"
link = "https://joway.io"
[[params.socials]]
name = "Github"
link = "https://github.com/joway"
You can’t perform that action at this time.