Skip to content

Commit

Permalink
theme: remove whitespace from article #891
Browse files Browse the repository at this point in the history
to avoid to be interpreted as indented code in some scenarios
  • Loading branch information
McShelby committed Oct 11, 2024
1 parent 5356b3b commit 9f9e449
Show file tree
Hide file tree
Showing 7 changed files with 52 additions and 52 deletions.
16 changes: 8 additions & 8 deletions exampleSite/layouts/chapter-overview/views/article.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

<article class="chapter narrow">
<header class="headline">
{{- partial "content-header.html" . }}
</header>
<article class="chapter narrow">
<header class="headline">
{{- partial "content-header.html" . }}
</header>
{{ partial "heading-pre.html" . }}<div class="article-subheading">{{ T "Chapter" .Params.Weight }}</div>
{{ partial "heading.html" . }}{{ partial "heading-post.html" . }}

Expand All @@ -13,7 +13,7 @@
"style" "h2"
"description" "true"
)}}
<footer class="footline">
{{- partial "content-footer.html" . }}
</footer>
</article>
<footer class="footline">
{{- partial "content-footer.html" . }}
</footer>
</article>
16 changes: 8 additions & 8 deletions exampleSite/layouts/releasenotes/views/article.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

<article class="default">
<header class="headline">
{{- partial "content-header.html" . }}
</header>
<article class="default">
<header class="headline">
{{- partial "content-header.html" . }}
</header>
{{ partial "heading-pre.html" . }}{{ partial "heading.html" . }}{{ partial "heading-post.html" . }}

<p>This document shows you what's new in the release and flags it with one of the following badges. For a detailed list of changes, see the {{ partial "shortcodes/link.html" (dict
Expand Down Expand Up @@ -40,7 +40,7 @@
<hr>

{{ partial "article-content.html" . }}
<footer class="footline">
{{- partial "content-footer.html" . }}
</footer>
</article>
<footer class="footline">
{{- partial "content-footer.html" . }}
</footer>
</article>
16 changes: 8 additions & 8 deletions layouts/_default/views/article.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@

<article class="default">
<header class="headline">
{{- partial "content-header.html" . }}
</header>
<article class="default">
<header class="headline">
{{- partial "content-header.html" . }}
</header>
{{ partial "heading-pre.html" . }}{{ partial "heading.html" . }}{{ partial "heading-post.html" . }}

{{ partial "article-content.html" . }}
<footer class="footline">
{{- partial "content-footer.html" . }}
</footer>
</article>
<footer class="footline">
{{- partial "content-footer.html" . }}
</footer>
</article>
16 changes: 8 additions & 8 deletions layouts/chapter/views/article.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@

<article class="chapter narrow">
<header class="headline">
{{- partial "content-header.html" . }}
</header>
<article class="chapter narrow">
<header class="headline">
{{- partial "content-header.html" . }}
</header>
{{ partial "heading-pre.html" . }}<div class="article-subheading">{{ T "Chapter" .Params.Weight }}</div>
{{ partial "heading.html" . }}{{ partial "heading-post.html" . }}

{{ partial "article-content.html" . }}
<footer class="footline">
{{- partial "content-footer.html" . }}
</footer>
</article>
<footer class="footline">
{{- partial "content-footer.html" . }}
</footer>
</article>
16 changes: 8 additions & 8 deletions layouts/home/views/article.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@

<article class="home">
<header class="headline">
{{- partial "content-header.html" . }}
</header>
<article class="home">
<header class="headline">
{{- partial "content-header.html" . }}
</header>
{{ partial "heading-pre.html" . }}{{ partial "heading.html" . }}{{ partial "heading-post.html" . }}

{{ partial "article-content.html" . }}
<footer class="footline">
{{- partial "content-footer.html" . }}
</footer>
</article>
<footer class="footline">
{{- partial "content-footer.html" . }}
</footer>
</article>
12 changes: 6 additions & 6 deletions layouts/partials/bodys/taxonomy.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

<article>
<header class="headline">
</header>
<article>
<header class="headline">
</header>

{{- $title := partial "title.gotmpl" (dict "page" .) }}
<h1 id="{{ $title | plainify | anchorize }}">{{ $title }}</h1>
Expand All @@ -25,6 +25,6 @@ <h2 id="{{ $capital | plainify | anchorize }}">{{ $capital }}</h2>
</ul>
{{- end }}

<footer class="footline">
</footer>
</article>
<footer class="footline">
</footer>
</article>
12 changes: 6 additions & 6 deletions layouts/partials/bodys/term.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

<article>
<header class="headline">
</header>
<article>
<header class="headline">
</header>

{{- $title := partial "title.gotmpl" (dict "page" .) }}
<h1 id="{{ $title | plainify | anchorize }}">{{ $title }}</h1>
Expand Down Expand Up @@ -29,6 +29,6 @@ <h2 id="{{ $capital | plainify | anchorize }}">{{ $capital }}</h2>
</ul>
{{- end }}

<footer class="footline">
</footer>
</article>
<footer class="footline">
</footer>
</article>

0 comments on commit 9f9e449

Please sign in to comment.