Allow a shorter 'nickname' for the initial home greeting (#23)
This commit is contained in:
@@ -41,6 +41,7 @@ params:
|
|||||||
# some information about you
|
# some information about you
|
||||||
author:
|
author:
|
||||||
name: "Jane Doe"
|
name: "Jane Doe"
|
||||||
|
nickname: "Jane"
|
||||||
image: "images/avatar.png"
|
image: "images/avatar.png"
|
||||||
# give your some contact information. they will be used in the footer
|
# give your some contact information. they will be used in the footer
|
||||||
contactInfo:
|
contactInfo:
|
||||||
|
|||||||
@@ -7,7 +7,14 @@
|
|||||||
<img src="{{ if .Site.Params.author.image }}{{ .Site.Params.author.image }}{{ else }}/assets/images/default-avatar.png{{ end }}"
|
<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"
|
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>
|
</h1>
|
||||||
<div class="typing-carousel">
|
<div class="typing-carousel">
|
||||||
<span id="ityped" class="ityped"></span>
|
<span id="ityped" class="ityped"></span>
|
||||||
|
|||||||
Reference in New Issue
Block a user