Don't add extra <p> to markdown contains ordered/unordered list in 'details' of section experience/details-list
This commit is contained in:
parent
ed8e2c9aa4
commit
91dacbdfc0
2 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
{{ $markdown := . | markdownify }}
|
{{ $markdown := . | markdownify }}
|
||||||
{{ if strings.Contains $markdown "<p>" }}
|
{{ if or (strings.Contains $markdown "<p>") (strings.Contains $markdown "<li>") }}
|
||||||
{{ $markdown }}
|
{{ $markdown }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<p>{{ $markdown }}</p>
|
<p>{{ $markdown }}</p>
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<span class="date">{{ .date }}</span>
|
<span class="date">{{ .date }}</span>
|
||||||
</div>
|
</div>
|
||||||
{{ if .details }}
|
{{ if .details }}
|
||||||
<p>{{ .details | markdownify }}</p>
|
{{- partial "markdown" .details }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in a new issue