Skip to content

vanderburgt/hugo-tania

 
 

Repository files navigation

Hugo Theme Tania

A simple theme for bloggers.

Demo

Example Site

Netlify Status

Introduction

Most of the styles for this theme come from taniarascia.com

I like it's style, so I transplant it to Hugo.

And is that why this theme called Tania.

Thank Tania Rascia again.

Here is some features:

  • Dark mode(It can switch automatically or manually)
  • Footnotes(Float on the right side)

Usage

Installation

In your site's root dir

git submodule add https://github.com/WingLim/hugo-tania themes/hugo-tania

Edit your site config following exampleSite/config.yaml.

Params

titleEmoji will show before the blog title on site navbar.

titleEmoji: '😎'

socialOptions will show on index bio with _index.md content. Account with icon can set as below:

socialOptions:
    dev-to:
    email:
    facebook:
    github:
    instagram:
    linkedin:
    medium:
    stack-overflow:
    steam:
    telegram:
    twitter:
    twitch:
    whatsapp:

If you want to disable the float footnotes, add below params.

enableFootnotes: false

Layout

articles layout is for showing all articles you write.

Add articles.md to site content dir, and write as below:

---
title: Articles
subtitle: Posts, tutorials, snippets, musings, and everything else.
date: 2020-11-26
type: section
layout: "archives"
---

Article

Enable math formula render

For enable math formula render, add katex: true or mathjax: true in your article head, like:

Notice: You should enable only one katex or mathjax in a same time.

---
title: Title
katex: true
---

Some content...

Thanks to

License

MIT

About

A simple theme for bloggers.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • SCSS 67.8%
  • HTML 19.6%
  • JavaScript 12.6%