PUBLISH: improve specific genre list pages
This commit is contained in:
parent
4f5f2834b2
commit
bb1d2e5761
5 changed files with 147 additions and 73 deletions
|
|
@ -1,21 +1,13 @@
|
|||
{{ define "main"}}
|
||||
{{define "main"}}
|
||||
<section>
|
||||
<header style="margin-bottom: 30px;">
|
||||
<header class="cluster s1 spacing:between" style="align-items: center; margin-bottom: 10px">
|
||||
<h1>{{.Title}}</h1>
|
||||
<a class="button button:large" href="{{.Site.BaseURL}}genres">Back to Genres</a>
|
||||
</header>
|
||||
|
||||
{{range .Pages }}
|
||||
<section>
|
||||
<header class="cluster spacing:between p1" style="align-items: flex-end;">
|
||||
<h2>{{.Data.Term}}</h2>
|
||||
<a href="{{ .Data.Term | urlize }}" class="button button:large">See more</a>
|
||||
</header>
|
||||
<div class="carasol">
|
||||
{{range first 25 .Data.Pages | shuffle }}
|
||||
{{ .Render "summary" }}
|
||||
{{end}}
|
||||
</div>
|
||||
</section>
|
||||
{{end}}
|
||||
<div class="cards">
|
||||
{{ range .Pages }}
|
||||
{{- .Render "summary" -}}
|
||||
{{ end }}
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
{{end}}
|
||||
|
|
|
|||
21
layouts/_default/terms.html
Normal file
21
layouts/_default/terms.html
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{{ define "main"}}
|
||||
<section>
|
||||
<header style="margin-bottom: 30px;">
|
||||
<h1>{{.Title}}</h1>
|
||||
</header>
|
||||
|
||||
{{range .Pages }}
|
||||
<section>
|
||||
<header class="cluster spacing:between p1" style="align-items: flex-end;">
|
||||
<h2>{{.Data.Term}}</h2>
|
||||
<a href="{{ .Data.Term | urlize }}" class="button button:large">See more</a>
|
||||
</header>
|
||||
<div class="carasol">
|
||||
{{range first 25 .Data.Pages | shuffle }}
|
||||
{{ .Render "summary" }}
|
||||
{{end}}
|
||||
</div>
|
||||
</section>
|
||||
{{end}}
|
||||
</section>
|
||||
{{ end }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue