diff --git a/config.toml b/config.toml index de588c3d..4017f4c0 100644 --- a/config.toml +++ b/config.toml @@ -1,8 +1,6 @@ title = "NYC Mesh" baseURL = "https://www.nycmesh.net/" defaultContentLanguage = "en" -pygmentsCodefences = true -pygmentsCodefencesGuessSyntax = true summaryLength = 10 [params] @@ -16,8 +14,6 @@ summaryLength = 10 [languages.zh] [markup] - [markup.blackFriday] - hrefTargetBlank = true [markup.tableOfContents] endLevel = 3 ordered = false diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 6443fc4d..30ae39da 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,12 +1,9 @@ -{{ if isset .Params "title" }} - {{ .Scratch.Set "title" .Title }} +{{ $title := .Site.Title }} +{{ with .Title }} + {{ if not $.IsHome }} + {{ $title = printf "%s - %s" . $.Site.Title }} + {{ end }} {{ end }} -{{ if .IsHome }} -{{ else }} - {{ .Scratch.Add "title" " - " }} - {{ .Scratch.Add "title" .Site.Title }} -{{ end }} -{{ $title := .Scratch.Get "title" }} diff --git a/layouts/_default/list.html b/layouts/_default/list.html index b3f242a3..7f5bca18 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -5,7 +5,7 @@

{{ .Title }}