Skip to content

Commit 9e46f11

Browse files
Some more partials
1 parent fe2fba3 commit 9e46f11

File tree

2 files changed

+4
-14
lines changed

2 files changed

+4
-14
lines changed

layouts/_default/single.html

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
11
{{ define "main" }}
22
<section class="content-padding">
3-
<div class="content-container">
4-
{{ partial "breadcrumbs.html" . }}
5-
<h1>{{ .Title }}</h1>
6-
{{ if .Params.Subtitle }}
7-
<h5 class="subtitle">{{ .Params.Subtitle }}</h5>
8-
{{ end }}
3+
{{ with partial "_decorators/content-container.html" . }}
94
{{ .Content }}
10-
</div>
5+
{{ end }}
116
{{ partial "shortcuts.html" . }}
127
</section>
138
{{ end }}

layouts/partials/posts/list.html

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,13 @@ <h2 class="tag-cloud-title">{{ i18n "tags" }}</h2>
2828
</ul>
2929
{{ end }}
3030
</div>
31-
<div class="content-container">
32-
{{ partial "breadcrumbs.html" . }}
33-
<h1>{{ .Title }}</h1>
34-
{{ if .Params.Subtitle }}
35-
<h5 class="subtitle">{{ .Params.Subtitle }}</h5>
36-
{{ end }}
31+
{{ with partial "_decorators/content-container.html" . }}
3732
{{ if .Content }}
3833
{{ .Content }}
3934
{{ end }}
4035
{{ $posts := .RegularPagesRecursive.ByPublishDate.Reverse }}
4136
{{ partial "posts/list-without-summary.html" $posts }}
42-
</div>
37+
{{ end }}
4338
{{ if .Content }}
4439
{{ partial "shortcuts.html" . }}
4540
{{ end }}

0 commit comments

Comments
 (0)