mirror of
https://git.adityakumar.xyz/hugo-theme-even.git
synced 2024-11-08 14:39:44 +00:00
feat: config logo title
This commit is contained in:
parent
2b282fc57c
commit
fba1d6b9c5
3 changed files with 18 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
|||
baseURL = "http://localhost:1313/"
|
||||
languageCode = "en"
|
||||
defaultContentLanguage = "en"
|
||||
title = "Even"
|
||||
title = "Even - A super concise theme for Hugo"
|
||||
enableRobotsTXT = true
|
||||
enableEmoji = true
|
||||
theme = "even"
|
||||
|
@ -42,9 +42,10 @@ copyright = "" # default: author.name ↓ # 默认为下面配
|
|||
url = "/categories/"
|
||||
|
||||
[params]
|
||||
since = "2017" # Site creation time # 站点建立时间
|
||||
|
||||
since = "2017" # Site creation time # 站点建立时间
|
||||
|
||||
# site info (option) # 站点信息(可选)
|
||||
logoTitle = "Even" # default: the title value # 默认值: 上面设置的title值
|
||||
keywords = ["Hugo", "theme","even"]
|
||||
description = "Hugo theme even example site."
|
||||
|
||||
|
|
|
@ -1,5 +1,11 @@
|
|||
<div class="logo-wrapper">
|
||||
<a href="{{ "/" | relURL }}" class="logo">{{ .Site.Title }}</a>
|
||||
<a href="{{ "/" | relURL }}" class="logo">
|
||||
{{- if .Site.Params.logoTitle -}}
|
||||
{{ .Site.Params.logoTitle }}
|
||||
{{- else -}}
|
||||
{{ .Site.Title }}
|
||||
{{- end -}}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<nav class="site-navbar">
|
||||
|
|
|
@ -1,6 +1,12 @@
|
|||
<div id="mobile-navbar" class="mobile-navbar">
|
||||
<div class="mobile-header-logo">
|
||||
<a href="{{ "/" | relURL }}" class="logo">{{ .Site.Title }}</a>
|
||||
<a href="{{ "/" | relURL }}" class="logo">
|
||||
{{- if .Site.Params.logoTitle -}}
|
||||
{{ .Site.Params.logoTitle }}
|
||||
{{- else -}}
|
||||
{{ .Site.Title }}
|
||||
{{- end -}}
|
||||
</a>
|
||||
</div>
|
||||
<div class="mobile-navbar-icon">
|
||||
<span></span>
|
||||
|
|
Loading…
Reference in a new issue