Hugo theme based on the gohugo website
Navigate to your site folder and run the following commands :
$ mkdir themes
$ cd themes
$ git clone https://github.com/crakjie/hugo-base-theme.git
- Place a image in
static/img/
and updatemainIcon
in config.toml - You can change the header image by adding a new image in the
static/img/
folder of the theme - Create posts to display your services. Use the follow as an example:
+++
date = 2014-10-13T20:07:19Z
draft = true
title = "First"
description = "Ceci est mon premier post \n bla bla bla"
weight = 1
icon = "pacman"
+++
Hello first post
Create a carousel.md file in /content/carousel
+++
date = 2014-10-13T19:54:21Z
draft = true
title = "About"
weight = 5
icon = "circlestar"
[[carousel]]
quote = "First quote"
author ="John Do"
url = ""
quote_date = "13 August"
[[carousel]]
quote = "Second quote"
author ="Nhoj Od"
url = ""
quote_date = "14 August"
+++
View gohugo.io theme in action here View audrey-carpentras.com in action here
#Have a look, Have a try
git clone https://github.com/crakjie/hugo-base-theme.git
cd hugo-base-theme/exampleSite
hugo server -t hugo-base-theme
===
Work also with YAML header
For more Hugo details, read documentation.
Example of config.toml file:
baseurl = "https://www.example.com"
languageCode = "fr-fr"
title = "my new web site"
[params]
description = "I <3 making web site"
mainIcon = "/img/hugo.png"
[[params.social]]
title = "twitter"
url = "https://twitter.com/SBootstrap"
[[params.social]]
title = "github"
url = "https://github.com/IronSummitMedia/startbootstrap"
[[params.social]]
title = "linkedin"
url = ""