mirror of https://github.com/luizdepra/hugo-coder.git

Paolo Mainardi
06.08.2022 5e56c8c1150525081e5b4d2aecb17d1ee0916cff
Make info capable to render markdown (#715)

I needed this because i wanted to add an external link (like CTO @ CompanyNameLink)
1 files modified
4 ■■■■ changed files
layouts/partials/home/author.html 4 ●●●● patch | view | raw | blame | history
layouts/partials/home/author.html
@@ -1,6 +1,6 @@
<h1>{{ .Site.Params.author }}</h1>
{{ if reflect.IsSlice .Site.Params.info }}
<h2>{{ range .Site.Params.info }}{{.}}<br>{{ end}}</h2>
<h2>{{ range .Site.Params.info }}{{ . | markdownify }}<br>{{ end}}</h2>
{{ else }}
<h2>{{ .Site.Params.info }}</h2>
<h2>{{ .Site.Params.info | markdownify }} </h2>
{{ end }}