Skip to content

Commit

Permalink
Attempting to fix top page - missing content of first post then loop …
Browse files Browse the repository at this point in the history
…is dying

Signed-off-by: Rick Cogley <rick.cogley@esolia.co.jp>
  • Loading branch information
RickCogley committed Sep 30, 2019
1 parent 3b3e81c commit 6753cec
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
12 changes: 8 additions & 4 deletions layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
<main class="w-70 w-50-ns center bg-white">
<h1 class="one">Welcome</h1>
<div class="pb2 f4">{{ .Content }}</div>
{{ $paginator := .Paginate (where .Data.Pages "Type" "posts") }}
{{ partial "pagination.html" . }}
{{ $paginator := .Paginate (where .Pages "Type" "posts") }}
<span>{{$paginator.TotalPages}}</span>
<!-- {{ partial "pagination.html" . }} -->
{{ template "_internal/pagination.html" . }}
<section class="mw7 center">
{{ range $paginator.Pages.GroupByDate "02 Jan 2006" }}
<div class="db pv2 ph3 ph0-l black">
Expand All @@ -22,7 +24,7 @@ <h3 class="gray f4">{{ .Key }}</h3>
{{ end }}
</div>
<div class="w-100 w-80-ns pl3-ns f4">
{{ range .Pages }}
{{ range $paginator.Pages }}

<article class="h-entry entry">
<p class="f4"><a class="link dim two b u-url url" href="{{ .Permalink }}">&laquo;{{ .Date.Format "15:04:05" }}&raquo;</a></p><p class="e-content" itemprop="articleBody"> {{- .Content -}}</p>
Expand All @@ -37,7 +39,9 @@ <h3 class="gray f4">{{ .Key }}</h3>
</div>
{{ end }}
</section>
{{ partial "pagination.html" . }}
<!-- {{ partial "pagination.html" . }} -->
{{ template "_internal/pagination.html" . }}

</main>
</div>
{{ end }}
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"Target":"style.min.e81a49ecce3ad7c2efc69fbbde37f107d6b7a774f0165361079e41fe44a71afa.css","MediaType":"text/css","Data":{"Integrity":"sha256-6BpJ7M4618Lvxp+73jfxB9a3p3TwFlNhB55B/kSnGvo="}}
{"Target":"style.min.0f019e79ebafaae195cdf3ca047866216da77569ec02d1c21e9708d1c3162b46.css","MediaType":"text/css","Data":{"Integrity":"sha256-DwGeeeuvquGVzfPKBHhmIW2ndWnsAtHCHpcI0cMWK0Y="}}

0 comments on commit 6753cec

Please # to comment.