File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change 88 < meta itemscope itemprop ="mainEntityOfPage " itemType ="https://schema.org/WebPage " itemid ="{{ $firstBlog.Permalink | absURL }} "/>
99 < section >
1010 {{ partial "blog/info.html" (dict "blog" $firstBlog "site" .Site) }}
11- < div itemprop ="description "> {{- safeHTML $firstBlog.Summary -}}</ div >
12- < div class ="menu ">
13- < nav >
14- < a class ="button inverse " href ="{{ $firstBlog.Permalink }} "> Read More</ a >
15- </ nav >
16- </ div >
11+ <!-- Split summary into paragraphs so they are properly formatted -->
12+ {{ $summaryParagraphs := split $firstBlog.Summary "< p > " }}
13+ {{range $summaryParagraphs }}
14+ {{ if eq . "" }}
15+ {{ continue }}
16+ {{ end }}
17+ < p itemprop ="description "> {{ htmlUnescape (plainify (safeHTML .)) }}</ p >
18+ {{end}}
19+ < div class ="menu ">
20+ < nav >
21+ < a class ="button inverse " href ="{{ $firstBlog.Permalink }} "> Read More</ a >
22+ </ nav >
23+ </ div >
1724 </ section >
1825 {{ $url := (printf "%s/%s" $firstBlog.Params.url $firstBlog.Params.featuredimage) | absURL }}
1926 < img alt ="{{ $firstBlog.Title }} " src ="{{ $url }} "> </ img >
You can’t perform that action at this time.
0 commit comments