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 }} + + + + + {{ $paginator := .Paginate (where .Data.Pages "Type" "travel") }} + {{ if .Paginator.HasPrev }} + Prev + {{ end }} + Page {{ .Paginator.PageNumber }} of {{ .Paginator.TotalPages }} + {{ if .Paginator.HasNext }} + Next + {{ 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 }} + + + + + {{ with .PrevInSection }} + ← {{ .Title }} + {{ end }} + {{ with .NextInSection }} + {{ .Title }} → + {{ end }} + + +{{ partial "footer.html" . }}