mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-13 08:15:44 +00:00
fix: improve HTML5 validation: remove nested <p>s
Blackfriday automatically wraps Markdown `Content` text in `<p>` tags. No need to wrap in additional `<p>` tags (which is also invalid HTML). See #1197
This commit is contained in:
1 parent
ac5dcd9dc4
commit
c56020be63
9 files changed
+9
-9
No files matched your search
@@ -8,7 +8,7 @@
|
||||
{{ with $page.Params.subtitle }}<p>{{ . | markdownify }}</p>{{ end }}
|
||||
</div>
|
||||
<div class="col-12 col-lg-8">
|
||||
{{ with $page.Content }}<p>{{ . | markdownify }}</p>{{ end }}
|
||||
{{ with $page.Content }}{{ . }}{{ end }}
|
||||
|
||||
{{ if $page.Params.item }}
|
||||
{{ range $idx, $key := sort $page.Params.item ".date_start" "desc" }}
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
{{ with $page.Params.subtitle }}<p>{{ . | markdownify }}</p>{{ end }}
|
||||
</div>
|
||||
<div class="col-12 col-lg-8">
|
||||
{{ with $page.Content }}<p>{{ . | markdownify }}</p>{{ end }}
|
||||
{{ with $page.Content }}{{ . }}{{ end }}
|
||||
|
||||
{{ if $page.Params.email_form }}
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
{{ with $page.Params.subtitle }}<p>{{ . | markdownify }}</p>{{ end }}
|
||||
</div>
|
||||
<div class="col-12 col-lg-8">
|
||||
{{ with $page.Content }}<p>{{ . | markdownify }}</p>{{ end }}
|
||||
{{ with $page.Content }}{{ . }}{{ end }}
|
||||
|
||||
{{ if $page.Params.experience }}
|
||||
{{ $exp_len := len $page.Params.experience }}
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
</div>
|
||||
<div class="col-12 col-lg-8">
|
||||
|
||||
{{ with $st.Content }}<p>{{ . }}</p>{{ end }}
|
||||
{{ with $st.Content }}{{ . }}{{ end }}
|
||||
|
||||
{{ range $post := $query }}
|
||||
{{ if eq $st.Params.design.view 1 }}
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
{{ with $page.Content }}
|
||||
<div class="col-md-12">
|
||||
<p>{{ . | markdownify }}</p>
|
||||
{{ . }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@
|
||||
</div>
|
||||
<div class="col-12 col-lg-8">
|
||||
|
||||
{{ with $st.Content }}<p>{{ . }}</p>{{ end }}
|
||||
{{ with $st.Content }}{{ . }}{{ end }}
|
||||
|
||||
{{ range $post := $query }}
|
||||
{{ if eq $st.Params.design.view 1 }}
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
{{ with $page.Content }}
|
||||
<div class="col-md-12">
|
||||
<p>{{ . }}</p>
|
||||
{{ . }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
<div>
|
||||
{{ end }}
|
||||
|
||||
{{ with $st.Content }}<p>{{ . }}</p>{{ end }}
|
||||
{{ with $st.Content }}{{ . }}{{ end }}
|
||||
|
||||
{{ if $st.Params.content.filter_button }}
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
{{ with $page.Params.subtitle }}<p>{{ . | markdownify | emojify }}</p>{{ end }}
|
||||
</div>
|
||||
<div class="col-12 col-lg-8">
|
||||
{{ with $page.Content }}<p>{{ . }}</p>{{ end }}
|
||||
{{ with $page.Content }}{{ . }}{{ end }}
|
||||
|
||||
{{ if not (eq (len site.Taxonomies.tags) 0) }}
|
||||
{{ $fontSmall := 0.8 }}
|
||||
|
||||
Reference in new issue
Block a user