From 0982980ea5910605526bbbd7491ab4eb0fb455f8 Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Sun, 14 Apr 2019 16:08:46 +0800 Subject: [PATCH] Display the travel section explanation. --- layouts/travel/list.html | 41 ++++++++++++++++++++++++++++++++++++++ layouts/travel/single.html | 32 +++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+) create mode 100644 layouts/travel/list.html create mode 100644 layouts/travel/single.html diff --git a/layouts/travel/list.html b/layouts/travel/list.html new file mode 100644 index 0000000..2068ec9 --- /dev/null +++ b/layouts/travel/list.html @@ -0,0 +1,41 @@ +{{ partial "header.html" . }} + + +
+

{{ .Title }}

+ {{.Content}} +
+ {{ $paginator := .Paginate (where .Data.Pages "Type" "travel") }} + {{ range $paginator.Pages }} +
+

{{ .Title }} {{ if .Draft }}:: DRAFT{{end}}

+
+ {{ .Date.Format "Jan 2, 2006" }}   + {{ range .Params.categories }} + #{{ . }}  + {{ end }} + {{ range .Params.tags }} + #{{ . }}  + {{ end }}: {{ .Description }} +
+
+ {{ end }} +
+ + + + +{{ partial "footer.html" . }} + + diff --git a/layouts/travel/single.html b/layouts/travel/single.html new file mode 100644 index 0000000..d22fc7d --- /dev/null +++ b/layouts/travel/single.html @@ -0,0 +1,32 @@ +{{ partial "header-content.html" . }} + + +
+
+

{{ .Title }}

+
+ {{ .Date.Format "Jan 2, 2006" }}   + {{ range .Params.categories }} + #{{ . }}  + {{ end }} + {{ range .Params.tags }} + #{{ . }}  + {{ end }}: {{ .Description }} +
+
+
+ {{ .Content }} + +
+ + + +{{ partial "footer.html" . }}