Skip to content

Commit 630dfbb

Browse files
stefanvjarrodmillman
authored andcommitted
Simplify/make consistent rendering of title/subtitle
1 parent 59c3932 commit 630dfbb

3 files changed

Lines changed: 9 additions & 12 deletions

File tree

assets/theme-css/styles.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,5 +395,5 @@ a.headerlink {
395395
#breadcrumbs {
396396
margin: 0;
397397
padding: 0;
398-
padding-bottom: 1rem;
398+
padding-bottom: 1.5rem;
399399
}

layouts/partials/section/section.html

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,10 @@
55
</div>
66
<div class="content-container">
77
{{ partial "breadcrumbs.html" . }}
8-
<div class="columns">
9-
<div class="column is-centered-tablet-portrait">
10-
<h1>{{ .Title }}</h1>
11-
<h5 class="subtitle is-5 is-muted">{{ .Params.Subtitle }}</h5>
12-
</div>
13-
</div>
8+
<h1>{{ .Title }}</h1>
9+
{{ if .Params.Subtitle }}
10+
<h5 class="subtitle is-5 is-muted">{{ .Params.Subtitle }}</h5>
11+
{{ end }}
1412
{{ if .Content }}
1513
{{ .Content }}
1614
{{ else }}

layouts/partials/single/content.html

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
<section class="content-padding flex-row">
22
<div class="content-container">
33
{{ partial "breadcrumbs.html" . }}
4-
<div class="columns">
5-
<div class="column is-centered-tablet-portrait">
6-
<h1>{{ .Title }}</h1>
7-
</div>
8-
</div>
4+
<h1>{{ .Title }}</h1>
5+
{{ if .Params.Subtitle }}
6+
<h5 class="subtitle is-5 is-muted">{{ .Params.Subtitle }}</h5>
7+
{{ end }}
98
{{ with partial "post_meta.html" . -}}
109
<div class="post-meta">{{ . }}</div>
1110
{{- end }}

0 commit comments

Comments
 (0)