Add ability to add site description below company name. Fixes #2

This commit is contained in:
Kishan B 2018-08-05 19:16:21 +05:30
parent f239fbad19
commit 0e96aa8c95
3 changed files with 4 additions and 0 deletions

View File

@ -2,3 +2,5 @@ baseURL = "http://example.org/"
languageCode = "en-us"
title = "Awesome Lighting Inc."
theme = "hugo-shopping-product-catalogue-simple"
[Params]
description = ""

View File

@ -1,5 +1,6 @@
<header>
<h1 class="text-center">{{ .Site.Title }}</h1>
{{ with .Site.Params.description }}<h4 class="text-center">{{ . }}</h4>{{ end }}
</header>
<article class="container-fluid">
<div class="row">

View File

@ -1,6 +1,7 @@
{{ define "main" }}
<header>
<h1 class="text-center">{{ .Site.Title }}</h1>
{{ with .Site.Params.description }}<h4 class="text-center">{{ . }}</h4>{{ end }}
</header>
<article class="container-fluid">
<div class="row">