From ba0a016b74ff214ed5d7ec6a5e533e14183f6d0f Mon Sep 17 00:00:00 2001 From: mivinci <1366723936@qq.com> Date: Tue, 20 Jul 2021 15:22:52 +0800 Subject: [PATCH] add params.iam to config --- exampleSite/config.toml | 2 ++ layouts/index.html | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 99d8016..f65c777 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -17,6 +17,8 @@ description = "This is Minima, a clean and minimal Hugo theme porting from Minim [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 # in a format "title - subtitle". subtitle = "" diff --git a/layouts/index.html b/layouts/index.html index 2665888..c99ca80 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,6 +1,6 @@ {{ define "main" }}
-

I am {{ .Site.Author.name }}

+

{{ .Site.Params.iam }} {{ .Site.Author.name }}

{{ .Site.Author.slogon }}

{{ .Site.Author.description }}

{{ if eq .Paginator.PageNumber 1 }}