Skip to content

Commit a4e1b4a

Browse files
fujitatomoyaJEnoch
authored andcommitted
add necessary template layout files to surpress warnings.
Signed-off-by: Tomoya Fujita <tomoya.fujita825@gmail.com>
1 parent 8efe229 commit a4e1b4a

File tree

3 files changed

+92
-0
lines changed

3 files changed

+92
-0
lines changed

layouts/_default/list.html

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{{ partial "header" . }}
2+
3+
<header class="d-flex flex-column flex-md-row align-items-md-center bg-light ato-lead">
4+
<div class="container p-3 p-md-5">
5+
<h1 class="ato-title mt-0">{{ .Title }}</h1>
6+
{{ with .Description }}
7+
<p>{{ . }}</p>
8+
{{ end }}
9+
</div>
10+
</header>
11+
12+
<main class="container p-3 p-md-5">
13+
{{ .Content }}
14+
15+
{{ if .Pages }}
16+
<div class="list-pages">
17+
{{ range .Pages }}
18+
<article class="mb-4">
19+
<h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
20+
{{ with .Description }}
21+
<p>{{ . }}</p>
22+
{{ end }}
23+
{{ with .Date }}
24+
<time datetime="{{ .Format "2006-01-02" }}">{{ .Format "January 2, 2006" }}</time>
25+
{{ end }}
26+
</article>
27+
{{ end }}
28+
</div>
29+
{{ end }}
30+
</main>
31+
32+
{{ partial "footer" . }}

layouts/_default/taxonomy.html

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{{ partial "header" . }}
2+
3+
<header class="d-flex flex-column flex-md-row align-items-md-center bg-light ato-lead">
4+
<div class="container p-3 p-md-5">
5+
<h1 class="ato-title mt-0">{{ .Title }}</h1>
6+
{{ with .Description }}
7+
<p>{{ . }}</p>
8+
{{ end }}
9+
</div>
10+
</header>
11+
12+
<main class="container p-3 p-md-5">
13+
{{ .Content }}
14+
15+
{{ if .Pages }}
16+
<div class="taxonomy-pages">
17+
{{ range .Pages }}
18+
<article class="mb-4">
19+
<h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
20+
{{ with .Description }}
21+
<p>{{ . }}</p>
22+
{{ end }}
23+
{{ with .Date }}
24+
<time datetime="{{ .Format "2006-01-02" }}">{{ .Format "January 2, 2006" }}</time>
25+
{{ end }}
26+
</article>
27+
{{ end }}
28+
</div>
29+
{{ end }}
30+
</main>
31+
32+
{{ partial "footer" . }}

layouts/_default/terms.html

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{{ partial "header" . }}
2+
3+
<header class="d-flex flex-column flex-md-row align-items-md-center bg-light ato-lead">
4+
<div class="container p-3 p-md-5">
5+
<h1 class="ato-title mt-0">{{ .Title }}</h1>
6+
{{ with .Description }}
7+
<p>{{ . }}</p>
8+
{{ end }}
9+
</div>
10+
</header>
11+
12+
<main class="container p-3 p-md-5">
13+
{{ .Content }}
14+
15+
{{ if .Data.Terms }}
16+
<div class="taxonomy-terms">
17+
<ul>
18+
{{ range .Data.Terms.Alphabetical }}
19+
<li>
20+
<a href="{{ .Page.RelPermalink }}">{{ .Page.Title }}</a> ({{ .Count }})
21+
</li>
22+
{{ end }}
23+
</ul>
24+
</div>
25+
{{ end }}
26+
</main>
27+
28+
{{ partial "footer" . }}

0 commit comments

Comments
 (0)