Skip to content

Commit 8185432

Browse files
authored
feat: Instances of direct meta description display in templates (#73)
This pull request removes meta descriptions from displaying in user-facing HTML, which has been a long-standing bug with the theme.
1 parent 22bed42 commit 8185432

File tree

6 files changed

+2
-25
lines changed

6 files changed

+2
-25
lines changed

layouts/_default/docs.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,10 @@
1111
{{ else }}
1212
<main class="content col d-block align-top content-no-toc" role="main">
1313
{{ end }}
14-
1514

1615
<h1>{{ .Title }}</h1>
1716

1817
{{ if eq .Page.Draft true }}{{ partial "draft-badge.html" . }}{{ end }}
19-
{{ if .Description }}<p>{{ .Description | markdownify }}</p>{{ end}}
2018

2119
{{ if in .Params.doctypes "beta" }}{{ partial "beta-badge" . }}{{ end }}
2220

layouts/feedback/single.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@
44
<main class="col-xl-6 d-block" role="main">
55
<div class="container">
66
<h1 class="align-center">{{ .Title }}</h1>
7-
{{ if .Description }}
8-
<p class="muted align-center pb-4">{{ .Description | markdownify }}</p><hr>{{ end}}
97
{{ if .Content }}
108
<div class="pb-4 mb-2">{{ .Content }}</div>
119
{{ end }}
1210
</div>
1311
</main>
1412
</div>
1513

16-
{{ end }}
14+
{{ end }}

layouts/ossc/single.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,11 @@
44
<main class="col-xl-8 d-block" role="main">
55
<div class="container">
66
<h1 class="align-center">{{ .Title }}</h1>
7-
{{ if .Description }}
8-
<p class="muted align-center pb-4">{{ .Description | markdownify }}</p><hr>{{ end}}
97
{{ if .Content }}
108
<div class="pb-4 mb-2">{{ .Content }}</div>
119
{{ end }}
1210
</div>
1311
</main>
1412
</div>
1513

16-
17-
{{ end }}
14+
{{ end }}

layouts/partials/list-main.html

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@
44
<h1 class="bd-title">
55
{{ .Title }}
66
</h1>
7-
{{ if .Description }}
8-
<p class="bd-lead">
9-
{{ .Description | markdownify }}
10-
</p>
11-
{{ end}}
127
{{ if .Content }}
138
<p class="bd-lead">
149
{{ .Content | markdownify }}
@@ -28,9 +23,6 @@ <h3 class="card-title">
2823
<i class="fas fa-{{if eq .Kind "page"}}file-alt{{else}}book{{end}} fa-2x card-img-top"></i>
2924
<a href="{{ if .Params.url}}{{ .Params.url}}{{else}}{{ .Permalink }}{{end}}">{{ .Title }}</a>
3025
</h3>
31-
{{/*}}<p class="card-text">
32-
{{ if .Description }}{{ .Description | markdownify }}{{ end }}
33-
</p>{{*/}}
3426
</div>
3527
</div>
3628
{{ end }}

layouts/partials/page-summary.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,4 @@ <h2 class="title">
33
<a href="{{ .Permalink }}" itemprop="headline">{{ .Title }}</a>
44
</h2>
55
<hr>
6-
{{ if .Description }}
7-
<p itemprop="about">{{ .Description | markdownify }}</p>
8-
{{ end }}
96
</li>

layouts/partials/taxonomy-list.html

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@
44
<h1 class="bd-title">
55
{{ .Title | humanize }} Index
66
</h1>
7-
{{ if .Description }}
8-
<p class="bd-lead">
9-
{{ .Description | markdownify }}
10-
</p>
11-
{{ end}}
127
{{ if .Content }}
138
<p class="bd-lead">
149
{{ .Content | markdownify }}

0 commit comments

Comments
 (0)