diff options
author | zilcH40 <wlh233@live.com> | 2022-09-14 19:21:52 +0300 |
---|---|---|
committer | zilcH40 <wlh233@live.com> | 2022-09-14 19:21:52 +0300 |
commit | 84a7aca340d301ea15700035d5a611a0ad9207d9 (patch) | |
tree | c4c645fad4b9f25145a939c56b0f9eade0bae7b3 /layouts/partials/head.html | |
parent | c6535284e9a632d58670f26a4e7689c73e868a8c (diff) |
fix small bugs
- revert wrong toc logic in last commit
- fix display extra character in title when subtitle is not set
- fix unnecessary hover effect of fake button on navbar
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r-- | layouts/partials/head.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index be8e90f..c1b9d50 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -8,8 +8,8 @@ <meta name="theme-color" content="{{.Site.Params.primaryColor}}"> {{- end -}} {{- if .IsHome -}} - <title>{{ .Site.Title }} | {{ .Site.Params.subtitle }}</title> - <meta property="og:title" content="{{ .Site.Title }} | {{ .Site.Params.subtitle }}"> + <title>{{ .Site.Title }} {{- if .Site.Params.subtitle }} | {{ .Site.Params.subtitle }} {{- end -}}</title> + <meta property="og:title" content="{{ .Site.Title }} {{- if .Site.Params.subtitle }} | {{ .Site.Params.subtitle }} {{- end -}}"> <meta property="og:type" content="website"> {{ if .Site.Params.keywords }} <meta name="keywords" content="{{.Site.Params.keywords}}"> |