add params.iam to config

This commit is contained in:
mivinci 2021-07-20 15:22:52 +08:00
parent 1fee2233ab
commit ba0a016b74
2 changed files with 3 additions and 1 deletions

View file

@ -17,6 +17,8 @@ description = "This is Minima, a clean and minimal Hugo theme porting from Minim
[params] [params]
# iam is the beginning words of your self-introduction.
iam = "I am"
# The subtitle will be shown after the title of your blog site # The subtitle will be shown after the title of your blog site
# in a format "title - subtitle". # in a format "title - subtitle".
subtitle = "" subtitle = ""

View file

@ -1,6 +1,6 @@
{{ define "main" }} {{ define "main" }}
<main> <main>
<h2 class="mb-0">I am {{ .Site.Author.name }}</h2> <h2 class="mb-0">{{ .Site.Params.iam }} {{ .Site.Author.name }}</h2>
<p>{{ .Site.Author.slogon }}</p> <p>{{ .Site.Author.slogon }}</p>
<p>{{ .Site.Author.description }}</p> <p>{{ .Site.Author.description }}</p>
{{ if eq .Paginator.PageNumber 1 }} {{ if eq .Paginator.PageNumber 1 }}