From 041293c8388c4dae4b83029ff1a3140b1274cebc Mon Sep 17 00:00:00 2001 From: wd Date: Sat, 11 Mar 2017 15:59:31 +0800 Subject: Add highlight support and many others feature --- layouts/_default/terms.html | 2 +- layouts/partials/head.html | 30 +++++++++--------------------- 2 files changed, 10 insertions(+), 22 deletions(-) (limited to 'layouts') diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html index 22ee845..7452a69 100644 --- a/layouts/_default/terms.html +++ b/layouts/_default/terms.html @@ -2,6 +2,6 @@ {{ $site := .Site }} {{ $data := .Data }} {{ range $key, $value := .Data.Terms.Alphabetical }} -{{ $value.Name }}({{ $value.Count }}) +{{ $value.Name }}{{ $value.Count }} {{ end }} {{ end }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 36e3edb..3b23ff4 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -2,28 +2,13 @@ - {{ $.Scratch.Add "title" "" }} - {{ if eq .Type "Archives" }} - {{ $.Scratch.Set "title" "Archives" }} + {{ if eq .Type "archives" }} + {{ $.Scratch.Set "title" "Archives" }} + {{ else if ne .Title .Site.Title }} + {{ $.Scratch.Set "title" .Title }} {{ end }} - {{ if $.Scratch.Get "title" }}{{ $.Scratch.Get "title" }} - {{ end }}{{ .Title }} + {{ if $.Scratch.Get "title" }}{{ $.Scratch.Get "title" }} - {{ end }}{{ .Site.Title }} @@ -33,7 +18,6 @@ - @@ -44,4 +28,8 @@ {{ template "_internal/google_analytics_async.html" . }} + + + + -- cgit v1.2.3