forked from TrueCloudLab/dot-hugo
docs topic icon is now optional
This commit is contained in:
parent
bcc70042cc
commit
995ed2f687
1 changed files with 2 additions and 2 deletions
|
@ -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 }}
|
||||||
|
|
Loading…
Reference in a new issue