a black-white theme for Hugo.
Clone or download
Latest commit 644fdec Jan 16, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
archetypes sync theme yinyang Nov 12, 2018
exampleSite modify example Nov 22, 2018
images [ImgBot] Optimize images (#1) Jan 14, 2019
layouts ads margin Jan 16, 2019
static ads margin Jan 16, 2019
LICENSE.md license.md Nov 12, 2018
README.md add canonical url Jan 2, 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

Install and Use Theme

Configuration

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 Wang"
  homepage = "https://joway.io/"

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

[params]
disqus = "joway" # disqus account name
extraHead = '<script async src="https://www.googletagmanager.com/gtag/js?id=UA-53624533-8"></script><script src="https://joway.io/analytics.js"></script>'
[[params.socials]]
name = "About Me"
link = "https://joway.io"
[[params.socials]]
name = "Github"
link = "https://github.com/joway"