Giter Site home page Giter Site logo

wovtheme's Introduction

WovTheme

WovTheme is a theme for Hugo to build OV website.

Installation

Add theme for your project

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

Prepare the theme

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

Use the theme

To use the theme in your project, add the parameter in your config.toml:

theme = "wovtheme"

or in your config.yaml:

theme: wovtheme

Mandatory files

The theme need some file in your project to properly work.

CSS

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.

Images

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

Configure

Params

Main parameters

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"

Socials

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.

Multilingual

The multilingual can be configure as Hugo multilingual.

For now the theme translate:

  • French
  • Español
  • Deutsch
  • English

wovtheme's People

Contributors

reneca avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.