Kaynağa Gözat

Make info capable to render markdown (#715)

I needed this because i wanted to add an external link (like CTO @ CompanyNameLink)
Paolo Mainardi 3 yıl önce
ebeveyn
işleme
5e56c8c115
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      layouts/partials/home/author.html

+ 2 - 2
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 }}