First commit
This commit is contained in:
12
themes/alpha-church/layouts/_default/baseof.html
Normal file
12
themes/alpha-church/layouts/_default/baseof.html
Normal file
@@ -0,0 +1,12 @@
|
||||
{{ partial "header" . .Section "list" }}
|
||||
{{ partialCached "nav" . .Section }}
|
||||
|
||||
{{ block "main" . }}
|
||||
{{ end }}
|
||||
|
||||
{{ partialCached "footer" . }}
|
||||
{{ if .IsPage }}
|
||||
{{ partialCached "scripts" . .Section "single" }}
|
||||
{{ else }}
|
||||
{{ partialCached "scripts" . .Section "list" }}
|
||||
{{ end }}
|
||||
9
themes/alpha-church/layouts/_default/list.html
Normal file
9
themes/alpha-church/layouts/_default/list.html
Normal file
@@ -0,0 +1,9 @@
|
||||
{{ define "main" }}
|
||||
{{ "<!-- Main -->" | safeHTML }}
|
||||
<section id="main" class="container">
|
||||
<header>
|
||||
<h2>{{ .Title | title }}</h2>
|
||||
</header>
|
||||
{{ partial "listbody" . }}
|
||||
</section>
|
||||
{{ end }}
|
||||
32
themes/alpha-church/layouts/_default/single.html
Normal file
32
themes/alpha-church/layouts/_default/single.html
Normal file
@@ -0,0 +1,32 @@
|
||||
{{ define "main" }}
|
||||
|
||||
{{ "<!-- Main -->" | safeHTML }}
|
||||
<section id="main" class="container">
|
||||
<header>
|
||||
<h2>{{ if .Draft }}DRAFT: {{end}}{{ .Params.title }}</h2>
|
||||
{{ with .Params.subtitle }}<p>{{ . }}</p>{{ end }}
|
||||
</header>
|
||||
<div class="box">
|
||||
{{ with .Params.images }}
|
||||
<span class="image featured"><img src="{{ index . 0 | absURL }}" alt=""></span>
|
||||
{{ end }}
|
||||
{{ .Content }}
|
||||
{{ if or .Params.tags .Params.date }}
|
||||
<hr />
|
||||
<div id="meta">
|
||||
{{ with .Params.tags }}
|
||||
<p>Tags:
|
||||
{{ range $index, $key:= . }}
|
||||
{{ if $index }}, {{ end }}
|
||||
{{ if gt (len $key) 0 }}
|
||||
<a href="/tags/{{$key | urlize }}/">#{{ $key }}</a>
|
||||
{{ end }} {{/* if gt len */}}
|
||||
{{ end }} {{/* range */}}
|
||||
</p>
|
||||
{{ end }} {{/* if tags */}}
|
||||
{{ with .Params.date }}<p class="meta">Published: {{ . | dateFormat "January 2, 2006"}}</p>{{ end }}
|
||||
</div>
|
||||
{{ end }} {{/* if meta */}}
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user