From 94f95fc114f63292c319c5f8867708c98cdb05bc Mon Sep 17 00:00:00 2001 From: Huy Tran Date: Thu, 25 Jan 2018 16:57:13 +0700 Subject: [PATCH] fix page layouts --- CHANGELOG.md | 2 +- layouts/_default/summary.html | 0 layouts/index.html | 22 ++++++++++++---------- layouts/partials/header.html | 3 +-- layouts/partials/list_content.html | 2 +- 5 files changed, 15 insertions(+), 14 deletions(-) delete mode 100644 layouts/_default/summary.html diff --git a/CHANGELOG.md b/CHANGELOG.md index 82b1e83..f1f3c9f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,4 +5,4 @@ - Fork from [Hyde](https://github.com/spf13/hyde) - Adapt to [Nate Finch's blog](https://npf.io)'s colors and fonts. - Refactor `basedof.html` and corresponding pages `index.html`, `single.html`, `list.html` - - define blocks `content` and `footer` that will be fulfilled by each different type of layout. \ No newline at end of file + - define blocks `content` and `footer` that will be fulfilled by each different type of layout. diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html deleted file mode 100644 index e69de29..0000000 diff --git a/layouts/index.html b/layouts/index.html index f882cf1..793d38b 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -5,16 +5,18 @@ {{ define "content" -}}
{{ range .Data.Pages -}} -
-

{{ .Title }}

- - {{ .Summary }} - {{ if .Truncated }} - - {{ end }} -
+ {{ if ne .Section "about" }} +
+

{{ .Title }}

+ + {{ .Summary }} + {{ if .Truncated }} + + {{ end }} +
+ {{ end }} {{- end }}
{{- end }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 7359db7..48a6804 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -17,8 +17,7 @@ - - + {{ if .Site.Params.highlightjs }} diff --git a/layouts/partials/list_content.html b/layouts/partials/list_content.html index f43c65d..79cf3bd 100644 --- a/layouts/partials/list_content.html +++ b/layouts/partials/list_content.html @@ -1,6 +1,6 @@

{{ .Title }}