~nykma/hugo-theme-jane unlisted

ae05152df0ba0df193dadc2e865fd6f2c81aae7b — Nyk Ma 9 months ago f814ff8
[+] Clear layouts/index
5 files changed, 11 insertions(+), 10 deletions(-)

M layouts/_default/section.html
M layouts/_default/taxonomy.html
M layouts/index.html
R layouts/post/{single.html => /single.html}
R layouts/post/{summary.html => /summary.html}
M layouts/_default/section.html => layouts/_default/section.html +1 -1
@@ 1,7 1,7 @@
{{ define "title" }}{{ i18n "archive" }} - {{ .Site.Title }}{{ end }}

{{ define "content"}}
{{- $paginator := .Paginate (where .Data.Pages.ByDate.Reverse "Type" "post") (index .Site.Params "archive-paginate" | default 10) }}
{{- $paginator := .Paginate (where .Data.Pages.ByDate.Reverse "Type" "pages") (index .Site.Params "archive-paginate" | default 10) }}
<section id="archive" class="archive">
  {{- if not $paginator.HasPrev }}
    <div class="archive-title">

M layouts/_default/taxonomy.html => layouts/_default/taxonomy.html +1 -1
@@ 10,7 10,7 @@
{{- end }}

{{ define "content"}}
{{ $paginator := .Paginate (where .Data.Pages.ByDate.Reverse "Type" "post") (index .Site.Params "archive-paginate" | default 10) }}
{{ $paginator := .Paginate (where .Data.Pages.ByDate.Reverse "Type" "pages") (index .Site.Params "archive-paginate" | default 10) }}
<section id="archive" class="archive">
  {{ if not $paginator.HasPrev }}
    {{ if eq .Data.Plural "tags" }}

M layouts/index.html => layouts/index.html +9 -8
@@ 1,13 1,14 @@
{{ define "content" }}
<section id="posts" class="posts">
  {{ $pages := .Pages }}
  {{ if .IsHome }}
    {{ $pages = where .Site.RegularPages "Type" "in" site.Params.mainSections }}
  {{ end }}
  {{ $paginator := .Paginate $pages }}
  {{ range $paginator.Pages }}
    {{ .Render "summary" }}
  {{ end }}
  <!-- {{ $pages := .Pages }} -->
  <!-- {{ if .IsHome }} -->
  <!--   {{ $pages = where .Site.RegularPages "Type" "in" site.Params.mainSections }} -->
  <!-- {{ end }} -->
  <!-- {{ $paginator := .Paginate $pages }} -->
  <!-- {{ range $paginator.Pages }} -->
  <!--   {{ .Render "summary" }} -->
  <!-- {{ end }} -->
  <h1>TBD</h1>
</section>

<!-- pagination -->

R layouts/post/single.html => layouts/posts/single.html +0 -0

R layouts/post/summary.html => layouts/posts/summary.html +0 -0