Checkpoint
This commit is contained in:
11
themes/maddybook/layouts/post/baseof.html
Normal file
11
themes/maddybook/layouts/post/baseof.html
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
{{- partial "head.html" . -}}
|
||||
<body>
|
||||
{{- partial "header.html" . -}}
|
||||
<div id="content">
|
||||
{{- block "main" . }}{{- end }}
|
||||
</div>
|
||||
{{- partial "footer.html" . -}}
|
||||
</body>
|
||||
</html>
|
||||
12
themes/maddybook/layouts/post/list.html
Normal file
12
themes/maddybook/layouts/post/list.html
Normal file
@ -0,0 +1,12 @@
|
||||
{{ define "main" }}
|
||||
{{ $paginator := .Paginate (where .Pages.ByPublishDate.Reverse ".Params.date" "!=" nil) 1 }}
|
||||
{{ $content := .Content }}
|
||||
{{ range $paginator.Pages.ByWeight }}
|
||||
<main id="main"{{ if (isset .Params "fit" )}} class="fit"{{ end }}>
|
||||
asdf
|
||||
{{ $content }}
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
{{ partial "pagination.html" . }}
|
||||
</main>
|
||||
{{end}}
|
||||
6
themes/maddybook/layouts/post/single.html
Normal file
6
themes/maddybook/layouts/post/single.html
Normal file
@ -0,0 +1,6 @@
|
||||
{{ define "main" }}
|
||||
<main id="main">
|
||||
<h2>{{ .Title }}</h2>
|
||||
{{ .Content }}
|
||||
</main>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user