diff options
author | Yue Yang <g1enyy0ung@gmail.com> | 2021-05-06 05:05:49 +0300 |
---|---|---|
committer | Yue Yang <g1enyy0ung@gmail.com> | 2021-05-06 05:05:49 +0300 |
commit | 17d1febc9ba45f33601d77a148ccbedbb2a3a588 (patch) | |
tree | 6de9e4f570ed698b99d796ebe80a7ddba482c656 | |
parent | cfafd2c33111a40a8ef902dcfc8f69142dec6e60 (diff) |
Remove blogAlias in i18nv2.0.0-beta.1
-rw-r--r-- | docs/params-configurations.md | 2 | ||||
-rwxr-xr-x | exampleSite/config.toml | 2 | ||||
-rw-r--r-- | i18n/de.toml | 3 | ||||
-rw-r--r-- | i18n/en.toml | 3 | ||||
-rw-r--r-- | i18n/es.toml | 3 | ||||
-rw-r--r-- | i18n/fr.toml | 3 | ||||
-rw-r--r-- | i18n/it.toml | 3 | ||||
-rw-r--r-- | i18n/ja.toml | 3 | ||||
-rw-r--r-- | i18n/pt.toml | 3 | ||||
-rw-r--r-- | i18n/zh.toml | 3 | ||||
-rw-r--r-- | layouts/partials/header.html | 6 |
11 files changed, 7 insertions, 27 deletions
diff --git a/docs/params-configurations.md b/docs/params-configurations.md index 22f69e8..de55d0d 100644 --- a/docs/params-configurations.md +++ b/docs/params-configurations.md @@ -153,7 +153,7 @@ Used in Header. Dream was originally intended to be used only as a blog theme. But with continuous development, people also use Dream in other places. -So this param aims to replace the legacy `blogAlias` in i18n files. If this param is set, the **header title** will use it rather than author + blogAlias (e.g. xxx's blog). +~~So this param aims to replace the legacy `blogAlias` in i18n files. If this param is set, the **header title** will use it rather than author + blogAlias (e.g. xxx's blog).~~ (`blogAlias` was deprecated and removed at 2021-05-06) ### motto = "与其感慨路难行,不如马上出发。" diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 259b8df..68c174c 100755 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -28,7 +28,7 @@ theme = "hugo-theme-dream" author = "Yue Yang" # description = "" avatar = "/img/avatar.jpeg" - # headerTitle = "" + headerTitle = "Hugo Theme Dream" motto = "Motto" # maxTags = 5 # categoriesLimitInHeader = 6 # deprecated diff --git a/i18n/de.toml b/i18n/de.toml index 38d9b6b..608d5f4 100644 --- a/i18n/de.toml +++ b/i18n/de.toml @@ -1,6 +1,3 @@ -[blogAlias] -other = "s Blog" - [home] other = "Start" diff --git a/i18n/en.toml b/i18n/en.toml index 2b01b0f..56b8c24 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -1,6 +1,3 @@ -[blogAlias] -other = "'s blog" - [home] other = "Home" diff --git a/i18n/es.toml b/i18n/es.toml index c39a76b..d8087c1 100644 --- a/i18n/es.toml +++ b/i18n/es.toml @@ -1,6 +1,3 @@ -[blogAlias] -other = "blog" - [home] other = "Inicio" diff --git a/i18n/fr.toml b/i18n/fr.toml index a83e9e5..444d3e5 100644 --- a/i18n/fr.toml +++ b/i18n/fr.toml @@ -1,6 +1,3 @@ -[blogAlias] -other = "'s blog" - [home] other = "Accueil" diff --git a/i18n/it.toml b/i18n/it.toml index 72870a9..876f297 100644 --- a/i18n/it.toml +++ b/i18n/it.toml @@ -1,6 +1,3 @@ -[blogAlias] -other = "Home" - [home] other = "Home" diff --git a/i18n/ja.toml b/i18n/ja.toml index d17774c..c9fb495 100644 --- a/i18n/ja.toml +++ b/i18n/ja.toml @@ -1,6 +1,3 @@ -[blogAlias] -other = "のブログ" - [home] other = "Home" diff --git a/i18n/pt.toml b/i18n/pt.toml index 29b5547..bc0f49e 100644 --- a/i18n/pt.toml +++ b/i18n/pt.toml @@ -1,6 +1,3 @@ -[blogAlias] -other = "'s blog" - [home] other = "Página inicial" diff --git a/i18n/zh.toml b/i18n/zh.toml index 2ea4a63..bc250a3 100644 --- a/i18n/zh.toml +++ b/i18n/zh.toml @@ -1,6 +1,3 @@ -[blogAlias] -other = "的博客" - [home] other = "首页" diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 86c5855..4d92fd3 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -7,7 +7,11 @@ <div class="content"> <h1 class="ui medium header"> - {{- if .Site.Params.headerTitle -}}{{ .Site.Params.headerTitle }}{{ else }}{{ .Site.Params.author }}{{ T "blogAlias" }}{{- end -}} + {{- if .Site.Params.headerTitle -}} + {{- .Site.Params.headerTitle -}} + {{- else -}} + Set headerTitle in the config to display + {{- end -}} <div class="sub header"> {{- .Site.Params.motto | safeHTML -}} </div> |