Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Bingo

A Hugo theme inspired by Classic theme, XMin theme, and Er theme.

screenshot

Installation

Inside the folder of your Hugo site:

$ cd themes
$ git clone git@github.com:gundamew/hugo-bingo.git

For more information read the official guide: Install and Use Themes.

Todo: Use Hugo Modules

Features

Use Google Analytics

This theme includes Hugo internal template for Google Analytics tracking. Provide your tracking ID in your configuration file to use it:

googleAnalytics = "UA-123-45"

Use Gravatar or local avatar image

[params]

  [params.avatar]
    use = "local"  # "local" or "gravatar"

  [params.gravatar]
    email = "hugo@example.com"
    size = 240

  [params.avatar.local]
    path = "example.png"  # please put the image in the static directory

Custom navbar

[menu]

  [[menu.main]]
    identifier = "home"
    name = "Home"
    url = "/"
    weight = 10

  [[menu.main]]
    identifier = "posts"
    name = "Posts"
    url = "/posts"
    weight = 20

Display social networks

You can put social network links on home page. It will sort by weight in ascending order, like navbar.

[params]

  [[params.social]]
    name = "github"
    url = "https://github.com/example"
    weight = 10

  [[params.social]]
    name = "twitter"
    url = "https://twitter.com/example"
    weight = 30

  [[params.social]]
    name = "linkedin"
    url = "https://www.linkedin.com/in/example"
    weight = 20

Available social icons:

  • bitbucket
  • dribbble
  • facebook
  • github
  • gitlab
  • instagram
  • keybase
  • linkedin
  • medium
  • plurk
  • rss
  • stackexchange
  • stackoverflow
  • twitter

Custom date format

[params]
  dateFormat = "2006-01-02"

Multiple languages

Example config:

defaultContentLanguage = "zh"
defaultContentLanguageInSubdir = true

[languages]

  [languages.en]
    weight = 10
    languageCode = "en-us"
    languageName = "English"
    contentDir = "content/en"

  [languages.fr]
    weight = 20
    languageCode = "fr-fr"
    languageName = "Français"
    contentDir = "content/fr"

  [languages.zh]
    weight = 30
    languageCode = "zh-tw"
    languageName = "中文(臺灣)"
    contentDir = "content/zh"

[menu]

  [[languages.en.menu.main]]
    identifier = "home"
    name = "Home"
    url = "/"
    weight = 10

  [[languages.en.menu.main]]
    identifier = "posts"
    name = "Posts"
    url = "/posts"
    weight = 20

  [[languages.fr.menu.main]]
    identifier = "home"
    name = "Maison"
    url = "/fr"
    weight = 10

  [[languages.fr.menu.main]]
    identifier = "posts"
    name = "Des postes"
    url = "/fr/posts"
    weight = 20

  [[languages.zh.menu.main]]
    identifier = "home"
    name = "首頁"
    url = "/zh"
    weight = 10

  [[languages.zh.menu.main]]
    identifier = "posts"
    name = "文章列表"
    url = "/zh/posts"
    weight = 20

And you have organize your posts like this:

.
└── content
    └── en
    │   ├── _index.md
    |   └── posts
    |       └── post-1.md
    ├── fr
    |   └── posts
    |       ├── post-1.md
    |       └── post-2.md
    └── zh
        ├── _index.md
        └── posts
            ├── post-1.md
            └── post-2.md

Built With

Contributing

Feel free to submit issues or pull requests.

License

This theme is released under the MIT License. See LICENSE.