Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/EmielH/hallo-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmiel Hollander <EmielH@users.noreply.github.com>2019-03-03 17:39:02 +0300
committerEmiel Hollander <EmielH@users.noreply.github.com>2019-03-03 17:39:02 +0300
commit4b0e1f2c509486e0b0eceb35cbc94772d0d8ace2 (patch)
tree564df690336c8b71f59f2547a1839ebbf940f3a3 /layouts
parent58377ef4de36988b50eec2c9ff70c5e7d6e3e3bd (diff)
Add option to alter greetingv2.1.0
Add the parameter greeting to your config.toml to choose a greeting of your own. See #5
Diffstat (limited to 'layouts')
-rw-r--r--layouts/index.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/layouts/index.html b/layouts/index.html
index 015419c..d14a097 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -5,7 +5,11 @@
<img src="images/portrait.jpg" width="300" height="300" class="portrait" alt="Portrait" />
</div>
<div class="column right">
- <h1>{{ i18n "hello" }}.</h1>
+ {{- with .Param "greeting" -}}
+ <h1>{{ . }}</h1>
+ {{- else -}}
+ <h1>{{ i18n "hello" }}.</h1>
+ {{- end -}}
<h2>{{ i18n "i-am" }} {{ .Site.Author.name | default "Hallo" }}.</h2>
<p>{{- partial "introduction.html" . -}}</p>