Hugo theme Snotra
Find a file
2020-05-05 21:48:26 +02:00
archetypes First standalone version 2020-04-28 12:26:34 +02:00
data/snotra First standalone version 2020-04-28 12:26:34 +02:00
i18n First standalone version 2020-04-28 12:26:34 +02:00
layouts [LAYOUT] Clean twitter:card 2020-04-28 21:49:52 +02:00
static Add two colored colors 2020-05-05 21:48:26 +02:00
CHANGELOG.md [RELEASE] v1.0.0 - First release 2020-04-28 21:51:53 +02:00
LICENSE First standalone version 2020-04-28 12:26:34 +02:00
README.md [THEME] Improve README 2020-04-28 21:50:23 +02:00
theme.toml First standalone version 2020-04-28 12:26:34 +02:00

Hugo theme : Snotra

This is a dark and classy Hugo theme.

Installation

To install Simple-site theme, you can simply clone the repository to your site's theme directory.

$ mkdir themes
$ cd themes
$ git clone https://git.vulgarisons.info/raghnarok/hugo_snotra.git snotra

Don't forget to change the theme in your config.toml file.

Configuration

Base

baseurl = "https://yourdoma.in" # The base url of your Hugo website
title = "Title"                 # The title of your website
author = "Author"               # The author of the website
language = "fr"
theme = "snotra"                # The Hugo theme

Menu

The menu is generated following all the files in the root directory and the articles in the blog directory. To avoid the blog entry to be pluralized, add the following option to your config file:

pluralizeListTitles = false

Description

You can use some parameters to fill meta tags and bases images:

[params]
	description = "" # Description for the meta tag
	favicon = ""     # Favicon URL
	logo = ""        # Logo URL
	keyword = ""     # Keywords for the meta tag

Home page

The home page use one avatar, the name, one description and a list of social networks. For the social networks, see Social Networks chapter.

[params]
	author = "Author"     # The author of the website
	info   = "Your infos" # Displayed under author name
	avatar = "file.png"   # Placed in static/images

Twitter:card

Twitter cards are automaticly generated. If you want tho have the twitter:site meta generated, add the following option to your config file:

[params]
	twitterUser = "youruser" # Your Twitter account without @

Custom CSS

[params]
	custom_css = ["style.css"] # Your own css files

Social Networks

You can also set some of your networks accounts to display on the home page. Every social network (or not so network) have to be described with thoses options:

[[params.social]]
	name   = "Title of the entry"            # Title, used on hover
	icon   = "facebook"                      # Icon to use
	weight = 1                               # Sort order
	url    = "https://www.facebook.com/user" # Link to your account

You can also add some non social elements, you only need to have an icon.