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

github.com/hossainemruz/toha.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Tipton <jason@blueyetisoftware.com>2020-07-01 06:39:47 +0300
committerGitHub <noreply@github.com>2020-07-01 06:39:47 +0300
commit436746b1701f5983c17f8c90ff2b4445c176678c (patch)
tree9fcede22b507a122e77fa1d1c4e7fef8e2942234 /layouts
parent45e36f3532e5d80a18fb453d9d7176d14da761cb (diff)
Allow a shorter 'nickname' for the initial home greeting (#23)
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/home.html9
1 files changed, 8 insertions, 1 deletions
diff --git a/layouts/partials/home.html b/layouts/partials/home.html
index d87a3fb..90e3dd7 100644
--- a/layouts/partials/home.html
+++ b/layouts/partials/home.html
@@ -7,7 +7,14 @@
<img src="{{ if .Site.Params.author.image }}{{ .Site.Params.author.image }}{{ else }}/assets/images/default-avatar.png{{ end }}"
class="rounded-circle mx-auto d-block img-fluid"
/>
- <h1 class="greeting">Hi, I am {{ if .Site.Params.author.name }}{{ .Site.Params.author.name }}{{ else }}Jane Doe{{ end }}
+ <h1 class="greeting">Hi, I am
+ {{ if .Site.Params.author.nickname }}
+ {{ .Site.Params.author.nickname }}
+ {{ else if .Site.Params.author.name }}
+ {{ .Site.Params.author.name }}
+ {{ else }}
+ Jane Doe
+ {{ end }}
</h1>
<div class="typing-carousel">
<span id="ityped" class="ityped"></span>