Commit edcf7f15 authored by Jamie Tanna's avatar Jamie Tanna

Wrap `p-description` in a <div> not a <p>

`p-description` could have its own markup embedded, so it means that if
we wrap it within a <p>, that <p> will break as soon as Hugo injects
another <p> for the actual content.

Wrapping it in a <div> instead saves us from this issue.

As part of jvt.me#395.
parent 8a91c0ec
......@@ -32,7 +32,7 @@
{{ end }}
</p>
{{ if .Content }}
<p class="p-description">{{ .Content }}</p>
<div class="p-description">{{ .Content }}</div>
{{ end }}
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment