WovTheme is a theme for Hugo to build OV website.
The theme can be retrieve from Git, with:
$ git submodule add https://github.com/reneca/wovtheme.git themes/wovtheme
or if the project is not versionned
$ git clone https://github.com/reneca/wovtheme.git themes/wovtheme
In order to use less brandwidth, static resources can be forward compressed. To compress all the theme static files (CSS, images, js)
The command should be execute at the root theme directory:
$ for file in $(find static -type f -iname '*.css' -or -iname '*.js' -or -iname '*.svg' -or -iname '*.png'); do gzip --best -c $file > $file.gz; done
To use the theme in your project, add the parameter in your config.toml
:
theme = "wovtheme"
or in your config.yaml
:
theme: wovtheme
The theme need some file in your project to properly work.
You need to have a css/palette.css with your custom colors:
:root {
--color-dark-scheme-bg: #1B1D22;
--color-dark-primary-bg: #303236;
--color-dark-primary-txt: #eeeeee;
--color-dark-secondary-bg: #616367;
--color-dark-secondary-txt: #c0bab6;
--color-primary: #9c27d9;
}
The main color to set is the --color-primary
. The other are optionnals.
The theme use some standard image for logos.
- img/wov/icon_back.svg use as the website icon
- img/wov/logo.svg Icon of your header logo (without the text)
- img/wov/textlogo.svg Text of your header logo
- img/wov/tabicon.svg Pinned tab icon use in Safari
The main parameters are for the site description, author,...
They have to be configure through:
params:
title_short: "WS"
desc: "Description of the website"
author: "Name of the author"
keywords: "keyword, website"
You can also set socials for the site:
params:
wov_socials:
- name: "twitter"
url: "https://twitter.com/username"
- name: "github"
url: "https://github.com/username"
- name: "dockerhub"
url: "https://hub.docker.com/r/project"
It'll bring socials link to the footer.
The multilingual can be configure as Hugo multilingual.
For now the theme translate:
- French
- Español
- Deutsch
- English