Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
add home template and fix list filter resolved #55
Browse files Browse the repository at this point in the history
  • Loading branch information
dsk52 committed Aug 21, 2019
1 parent 93a1f4b commit 959ef80
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 4 deletions.
16 changes: 16 additions & 0 deletions layouts/_default/home.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{{ define "main" }}
{{ $pages := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) 5 }}

<div class="p-archive">
<div class="c-container">
<ul class="c-archive-list">
{{ range $pages.Pages }}
{{ .Render "li" }}
{{ end }}
</ul>

{{ partial "pagenation.html" . }}
</div>
</div>

{{ end }}
5 changes: 3 additions & 2 deletions layouts/_default/list.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{{ define "main" }}
{{ $pages := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) 5 }}
{{ $pages := .Pages }}
{{ $paginator := .Paginate $pages }}

<div class="p-archive">
<div class="c-container">
<ul class="c-archive-list">
{{ range $pages.Pages }}
{{ range $pages }}
{{ .Render "li" }}
{{ end }}
</ul>
Expand Down
2 changes: 1 addition & 1 deletion layouts/_default/terms.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<div class="c-container">
<ul class="c-taxonomy-list">
{{ $data := .Data }}
{{ range $key, $value := .Data.Terms }}
{{ range $key, $value := $data.Terms }}
<li class="c-taxonomy-list__item">
<a class="c-link" href="/{{ $data.Plural }}/{{ $key | urlize }}">{{ $key }}</a><span>({{ len $value }})</span>
</li>
Expand Down
2 changes: 1 addition & 1 deletion theme.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ description = "It is simple, thumbnail can be set theme."
homepage = "https://github.com/d-kusk/minimage/"
tags = ["responsive", "simple"]
features = ["Responsive", "Thumbnail", "JSON-LD"]
min_version = "0.56"
min_version = "0.57.2"

[author]
name = "Daisuke KONISHI"
Expand Down

0 comments on commit 959ef80

Please sign in to comment.