Cleanup posts rendering
This commit is contained in:
@@ -8,10 +8,8 @@
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<main>
|
||||
<div class="book-posts mx-auto">
|
||||
{{ template "main" . }}
|
||||
</div>
|
||||
<main class="book-posts mx-auto">
|
||||
{{ template "main" . }}
|
||||
</main>
|
||||
|
||||
{{ partial "docs/inject/body" . }}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
{{ define "main" }}
|
||||
<section>
|
||||
{{ $paginator := .Paginate (where .Pages "Params.hidden" "ne" true) }}
|
||||
{{ range sort .Paginator.Pages }}
|
||||
<article>
|
||||
@@ -16,5 +15,4 @@
|
||||
</article>
|
||||
{{ end }}
|
||||
{{ template "_internal/pagination.html" . }}
|
||||
</section>
|
||||
{{ end }}
|
||||
@@ -1,11 +1,9 @@
|
||||
{{ define "main" }}
|
||||
<section>
|
||||
<header>
|
||||
<h1>{{ .Title }}</h1>
|
||||
<h5>{{ .Date.Format "January 2, 2006" }}</h5>
|
||||
</header>
|
||||
<article class="markdown">
|
||||
{{- .Content -}}
|
||||
</article>
|
||||
</section>
|
||||
<header>
|
||||
<h1>{{ .Title }}</h1>
|
||||
<h5>{{ .Date.Format "January 2, 2006" }}</h5>
|
||||
</header>
|
||||
<article class="markdown">
|
||||
{{- .Content -}}
|
||||
</article>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user