docs topic icon is now optional

This commit is contained in:
somratpro 2020-11-05 09:50:04 +06:00
parent bcc70042cc
commit 995ed2f687

View file

@ -11,9 +11,9 @@
{{ range (where .Site.Pages "Type" "docs") }} {{ range (where .Site.Pages "Type" "docs") }}
<div class="col-lg-4 col-sm-6 mb-4"> <div class="col-lg-4 col-sm-6 mb-4">
<a href="{{ .Permalink }}" class="px-4 py-5 bg-white shadow text-center d-block match-height"> <a href="{{ .Permalink }}" class="px-4 py-5 bg-white shadow text-center d-block match-height">
<i class="{{ .Params.Icon }} icon text-primary d-block mb-4"></i> {{ with .Params.icon}}<i class="{{.}} icon text-primary d-block mb-4"></i>{{end}}
<h3 class="mb-3 mt-0">{{ .Title }}</h3> <h3 class="mb-3 mt-0">{{ .Title }}</h3>
<p class="mb-0">{{ .Params.Description }}</p> {{with .Params.description}}<p class="mb-0">{{. | markdownify}}</p>{{end}}
</a> </a>
</div> </div>
{{ end }} {{ end }}