mirror of https://github.com/lxndrblz/anatole.git

Alexander Bilz
16.13.2020 c99777b9f1745179cec95b61b8510d1685c517da
Merge pull request #6 from msfjarvis/bug/dangling-title-pipe

Only add pipe character to page title when config is set. No pipe symbol will be displayed on pages that don't specify a title.
1 files modified
2 ■■■ changed files
layouts/partials/head.html 2 ●●● patch | view | raw | blame | history
layouts/partials/head.html
@@ -1,5 +1,5 @@
<head>
    <title> {{.Site.Params.author}} | {{.Title}} </title>
    <title> {{.Site.Params.author}}{{ with .Title }} | {{ . }}{{ end }} </title>
    <meta charset="utf-8">
    {{- hugo.Generator -}}
    <meta name="viewport" content="width=device-width,initial-scale=1,viewport-fit=cover">