Merge pull request #106 from iakunin/2021-10-19_extracting-title

Extracting <title> to be able to override it in the client code
This commit is contained in:
Dmitry Kolosov 2021-10-20 14:48:08 +03:00 committed by GitHub
commit 552820a982
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -4,7 +4,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="referrer" content="no-referrer-when-downgrade">
<title>{{ if and (.Title) (not .IsHome) }}{{ .Title }} - {{ end }}{{ .Site.Title }}</title>
{{ partial "title.html" }}
<meta name="description" content="{{ .Site.Params.Description }}">
{{ with .OutputFormats.Get "rss" -}}

View File

@ -0,0 +1 @@
<title>{{ if and (.Title) (not .IsHome) }}{{ .Title }} - {{ end }}{{ .Site.Title }}</title>