Skip to content

Commit 3fc97d8

Browse files
authored
fix: invalid HTML in rendered web pages (#365)
Signed-off-by: Jaime Silvela <jaime.silvela@mailfence.com>
1 parent 03615b7 commit 3fc97d8

File tree

7 files changed

+18
-17
lines changed

7 files changed

+18
-17
lines changed

layouts/_partials/card.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<div class="w-full md:py-4 md:px-20 px-4 py-1">
2-
<h1 class="md:text-3xl md:py-4 font-medium text-2xl py-1 md:text-left text-center">{{.Title}}</h1>
3-
<p class="md:text-xl text-lg">{{ .Content }}</p>
2+
<h2 class="md:text-3xl md:py-4 font-medium text-2xl py-1 md:text-left text-center">{{.Title}}</h2>
3+
<div class="md:text-xl text-lg">{{ .Content }}</div>
44
</div>

layouts/_partials/footer.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ <h3 class="text-3xl font-semibold mb-0">Community</h3>
6262
<!-- Legal Text Section -->
6363
<div class="text-center pb-4">
6464
<p class="text-sm charcoal md:w-1/2 mx-auto md:pt-10 px-6 pt-12">
65-
Copyright &copy; CloudNativePG a Series of LF Projects, LLC.<br />
65+
Copyright &copy; CloudNativePG a Series of LF Projects, LLC.<br>
6666
For website terms of use, trademark policy and other project policies please see
67-
<a href="https://lfprojects.org/policies/">LF Projects, LLC Policies</a>.<br /><br />
67+
<a href="https://lfprojects.org/policies/">LF Projects, LLC Policies</a>.<br><br>
6868
<a href="https://www.linuxfoundation.org/trademark-usage/" class="red-1">The Linux Foundation has registered
69-
trademarks and uses trademarks</a>.<br /><br />
69+
trademarks and uses trademarks</a>.<br><br>
7070
<a href="https://www.postgresql.org/about/policies/trademarks" class="red-1">Postgres, PostgreSQL and the Slonik
7171
Logo are trademarks or
7272
registered trademarks of the PostgreSQL Community Association of Canada, and

layouts/_partials/hero.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ <h1 class="md:text-6xl font-bold red-1 pt-2.5 text-3xl md:text-left text-center"
1717
<img src="{{ $image.RelPermalink }}" alt="hero image" class="mx-auto">
1818
</div>
1919
</div>
20+
</div>
2021
</section>

layouts/_partials/info.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@
99
<img src="{{ .context.Params.icon }}" alt="{{.context.Title}}" class="h-20 mx-auto" />
1010
</div>
1111
<div class="md:w-3/5 md:block">
12-
<h1 class="md:text-3xl py-4 font-medium cnp-blue text-2xl md:text-left text-center">{{ .context.Title }}</h1>
13-
<p class="md:text-xl leading-8 gray-4 text-lg">{{ .context.Content }}</p>
12+
<h2 class="md:text-3xl py-4 font-medium cnp-blue text-2xl md:text-left text-center">{{ .context.Title }}</h2>
13+
<div class="md:text-xl leading-8 gray-4 text-lg">{{ .context.Content }}</div>
1414
</div>
1515
</section>
1616
</div>
1717
{{ else }}
1818
<div class="md:block hidden w-full bg-white py-16 md:px-56">
1919
<section class="container mx-auto text-left md:flex md:flex-row md:justify-between">
2020
<div class="md:w-3/5">
21-
<h1 class="md:text-3xl py-4 font-medium cnp-blue text-2xl">{{ .context.Title }}</h1>
22-
<p class="md:text-xl leading-8 gray-4 text-lg">{{ .context.Content }}</p>
21+
<h2 class="md:text-3xl py-4 font-medium cnp-blue text-2xl">{{ .context.Title }}</h2>
22+
<div class="md:text-xl leading-8 gray-4 text-lg">{{ .context.Content }}</div>
2323
</div>
2424
<div class="items-center my-auto mx-auto">
2525
<img src="{{ .context.Params.icon }}" alt="{{.context.Title}}" class="mx-auto" />
@@ -32,8 +32,8 @@ <h1 class="md:text-3xl py-4 font-medium cnp-blue text-2xl">{{ .context.Title }}<
3232
<img src="{{ .context.Params.icon }}" alt="{{.context.Title}}" class="h-20 mx-auto" />
3333
</div>
3434
<div class="md:w-3/5">
35-
<h1 class="md:text-3xl py-4 font-medium text-center cnp-blue text-2xl">{{ .context.Title }}</h1>
36-
<p class="md:text-xl leading-8 gray-4 text-lg">{{ .context.Content }}</p>
35+
<h2 class="md:text-3xl py-4 font-medium text-center cnp-blue text-2xl">{{ .context.Title }}</h2>
36+
<div class="md:text-xl leading-8 gray-4 text-lg">{{ .context.Content }}</div>
3737
</div>
3838
</section>
3939
</div>

layouts/paged_content/list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<div class="mx-auto md:w-1/2 px-4 well">
44
<h2 class="text-xl mt-6">{{.Title}}</h2>
5-
<p>{{.Content}}</p>
5+
{{.Content}}
66

77
{{ range .Pages }}
88
<hr>

layouts/releases/list.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,21 @@
1818
<div class="charcoal">
1919
<dl>
2020
<dt class="text-3xl my-5 font-bold">{{ .Title }}</dt>
21-
<div class="flex text-xs gap-1.5">
21+
<dd class="flex text-xs gap-1.5">
2222
<ul class="text-sm">
2323
{{ range .Params.tags }}
2424
<li class="bg-charcoal-opacity-10 py-1 px-2.5 inline-block mr-2 mb-2">{{ . }}</li>
2525
{{ end }}
2626
</ul>
27-
</div>
27+
</dd>
2828
<dd class="text-2xl my-5">{{ .Params.summary }}</dd>
2929
</dl>
3030
</div>
3131

3232
<!--CTA-->
3333
<div class="pt-10">
34-
<a href="{{ .RelPermalink }}"
35-
class="bg-rose-600 py-4 px-12 rounded-full text-white text-xl">Continue Reading</a>
34+
<span
35+
class="bg-rose-600 py-4 px-12 rounded-full text-white text-xl">Continue Reading</span>
3636
</div>
3737
<!--CTA-->
3838
</a>

layouts/support/list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<div class="mx-auto md:w-1/2 px-4 well">
44
<h2 class="text-xl mt-6">{{.Title}}</h2>
5-
<p>{{.Content}}</p>
5+
{{.Content}}
66
<ul>
77
{{ range sort .Pages "Title" }}
88
<li><a href="{{ .Params.homepage }}">{{ .Title }}</a></li>

0 commit comments

Comments
 (0)