casper3 | add new theme
This commit is contained in:
parent
909ebbc5d7
commit
57089e42ce
28 changed files with 417 additions and 0 deletions
32
themes/casper3/layouts/_default/list.html
Normal file
32
themes/casper3/layouts/_default/list.html
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{{ define "body_class" }} tag-template {{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
|
||||
<header class="site-header">
|
||||
{{- partial "site-header.html" $ -}}
|
||||
|
||||
{{- partial "header-background.html" $ -}}
|
||||
<div class="inner site-header-content">
|
||||
<h1 class="site-title">{{ .Title }}</h1>
|
||||
<h2 class="site-description">
|
||||
{{ if .Param "description" }}
|
||||
{{ .Param "description" }}
|
||||
{{ else }}
|
||||
A collection of {{ len .Pages }} post{{ if gt (len .Pages) 1 }}s{{ end }}
|
||||
{{ end }}
|
||||
</h2>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main id="site-main" class="site-main outer">
|
||||
<div class="inner posts">
|
||||
<div class="post-feed">
|
||||
{{ range $index, $element := .Pages }}
|
||||
{{- partial "post-card.html" (dict "context" . "index" $index "home" $.IsHome) -}}
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
{{ end }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue