Move greeting message under author field
This commit is contained in:
parent
b0930086ef
commit
3d3c9976e8
3 changed files with 15 additions and 20 deletions
|
@ -116,6 +116,8 @@ params:
|
||||||
name: "Jane Doe"
|
name: "Jane Doe"
|
||||||
nickname: "Jane"
|
nickname: "Jane"
|
||||||
image: "images/avatar.png"
|
image: "images/avatar.png"
|
||||||
|
# greeting message before your name. it will default to "Hi! I am" if not provided
|
||||||
|
greeting: "Hi, I am"
|
||||||
# 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:
|
||||||
email: "janedoe@example.com"
|
email: "janedoe@example.com"
|
||||||
|
|
|
@ -60,16 +60,13 @@ params:
|
||||||
newsletter:
|
newsletter:
|
||||||
enable: true
|
enable: true
|
||||||
|
|
||||||
# home page greeting message
|
|
||||||
# if empty it will default to "Hi, I am"
|
|
||||||
homeGreeting:
|
|
||||||
message: ""
|
|
||||||
|
|
||||||
# some information about you
|
# some information about you
|
||||||
author:
|
author:
|
||||||
name: "Jane Doe"
|
name: "Jane Doe"
|
||||||
nickname: "Jane"
|
nickname: "Jane"
|
||||||
image: "images/avatar.png"
|
image: "images/avatar.png"
|
||||||
|
# greeting message before your name. it will default to "Hi! I am" if not provided
|
||||||
|
greeting: "Hi, I am"
|
||||||
# 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:
|
||||||
email: "janedoe@example.com"
|
email: "janedoe@example.com"
|
||||||
|
|
|
@ -1,3 +1,13 @@
|
||||||
|
{{ $greeting:="Hi! I am" }}
|
||||||
|
{{ if .Site.Params.author.greeting }}
|
||||||
|
{{ $greeting = .Site.Params.author.greeting }}
|
||||||
|
{{ end }}
|
||||||
|
{{ $name:="Jane Doe" }}
|
||||||
|
{{ if .Site.Params.author.nickname }}
|
||||||
|
{{ $name = .Site.Params.author.nickname }}
|
||||||
|
{{ else if .Site.Params.author.name }}
|
||||||
|
{{ $name = .Site.Params.author.name }}
|
||||||
|
{{ end }}
|
||||||
<div class="container-fluid home" id="home">
|
<div class="container-fluid home" id="home">
|
||||||
<div
|
<div
|
||||||
class="background container-fluid"
|
class="background container-fluid"
|
||||||
|
@ -7,21 +17,7 @@
|
||||||
<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">
|
<h1 class="greeting"> {{ $greeting }} {{ $name }}</h1>
|
||||||
{{ if .Site.Params.homeGreeting.message}}
|
|
||||||
{{ .Site.Params.homeGreeting.message}}
|
|
||||||
{{ else }}
|
|
||||||
Hi, I am
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
{{ 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">
|
<div class="typing-carousel">
|
||||||
<span id="ityped" class="ityped"></span>
|
<span id="ityped" class="ityped"></span>
|
||||||
<span class="ityped-cursor"></span>
|
<span class="ityped-cursor"></span>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue