Skip to content
Hugo theme based on GitHub's Primer CSS
Branch: master
Clone or download
Pull request Compare This branch is 13 commits ahead, 9 commits behind qqhann:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
archetypes
layouts
static/assets
.gitignore
LICENSE.md
README.md
theme.toml

README.md

Hydrurga

A Hugo Theme

Based on the hugo-primer theme.

Installation

Clone to your theme directory:

$ git clone https://github.com/jachin/hydrurga.git themes/hydrurga

$ hugo server --theme=hydrurga

Usage

config.toml

You can configure Hydrurga behavior with these params in your blog's config.toml. Shown are defaults and most recommended configs.

That being said, below is all recommended configurations.

# config.toml

baseURL = "https://your_web_site"
title = "Your Blog"
theme = "hugo-primer"
summaryLength = 70
# Code pen
pygmentsCodeFences = true
pygmentsUseClasses = true
googleAnalytics = "<Your Tracking Code>"

[frontmatter]
# update sitemap.xml's lastmod datetime by file change time, instead of git.
lastmod = ["lastmod", ":fileModTime", ":default"]

[params]
description = "Describe what your web page is about"
twitter = "your_twitter_id"
# You can use favicon by adding them manually.
useIcon = true
useTwitterCard = true

shareTo = ["Twitter", "Hatena", "Facebook", "Pocket"]

Some config variables you could set.

dateFormat

This sets the format for how the dates appear.

[params]
  dateFormat = "Jan 2 2006"

Favicons

Put your favicons in your site's static\favicon directory and name appropriately.

  • favicon/favicon.ico
  • favicon/favicon-032.png
  • favicon/favicon-057.png
  • favicon/favicon-072.png
  • favicon/favicon-120.png
  • favicon/favicon-128.png
  • favicon/favicon-144.png
  • favicon/favicon-152.png
  • favicon/favicon-195.png
  • favicon/favicon-228.png

Yes, the world of favicons seems more complicated than it needs to be, but lets try and be accommodating.

Contributing

Issues and PRs are welcome.

License

MIT

You can’t perform that action at this time.