Skip to content

Remove meta descriptions from displaying in user-facing HTML #73

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions layouts/_default/docs.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,10 @@
{{ else }}
<main class="content col d-block align-top content-no-toc" role="main">
{{ end }}


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

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

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

Expand Down
4 changes: 1 addition & 3 deletions layouts/feedback/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@
<main class="col-xl-6 d-block" role="main">
<div class="container">
<h1 class="align-center">{{ .Title }}</h1>
{{ if .Description }}
<p class="muted align-center pb-4">{{ .Description | markdownify }}</p><hr>{{ end}}
{{ if .Content }}
<div class="pb-4 mb-2">{{ .Content }}</div>
{{ end }}
</div>
</main>
</div>

{{ end }}
{{ end }}
5 changes: 1 addition & 4 deletions layouts/ossc/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,11 @@
<main class="col-xl-8 d-block" role="main">
<div class="container">
<h1 class="align-center">{{ .Title }}</h1>
{{ if .Description }}
<p class="muted align-center pb-4">{{ .Description | markdownify }}</p><hr>{{ end}}
{{ if .Content }}
<div class="pb-4 mb-2">{{ .Content }}</div>
{{ end }}
</div>
</main>
</div>


{{ end }}
{{ end }}
8 changes: 0 additions & 8 deletions layouts/partials/list-main.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@
<h1 class="bd-title">
{{ .Title }}
</h1>
{{ if .Description }}
<p class="bd-lead">
{{ .Description | markdownify }}
</p>
{{ end}}
{{ if .Content }}
<p class="bd-lead">
{{ .Content | markdownify }}
Expand All @@ -28,9 +23,6 @@ <h3 class="card-title">
<i class="fas fa-{{if eq .Kind "page"}}file-alt{{else}}book{{end}} fa-2x card-img-top"></i>
<a href="{{ if .Params.url}}{{ .Params.url}}{{else}}{{ .Permalink }}{{end}}">{{ .Title }}</a>
</h3>
{{/*}}<p class="card-text">
{{ if .Description }}{{ .Description | markdownify }}{{ end }}
</p>{{*/}}
</div>
</div>
{{ end }}
Expand Down
3 changes: 0 additions & 3 deletions layouts/partials/page-summary.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,4 @@ <h2 class="title">
<a href="{{ .Permalink }}" itemprop="headline">{{ .Title }}</a>
</h2>
<hr>
{{ if .Description }}
<p itemprop="about">{{ .Description | markdownify }}</p>
{{ end }}
</li>
5 changes: 0 additions & 5 deletions layouts/partials/taxonomy-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@
<h1 class="bd-title">
{{ .Title | humanize }} Index
</h1>
{{ if .Description }}
<p class="bd-lead">
{{ .Description | markdownify }}
</p>
{{ end}}
{{ if .Content }}
<p class="bd-lead">
{{ .Content | markdownify }}
Expand Down