diff options
author | somratpro <abdulmonnafsomrat@gmail.com> | 2020-11-05 06:50:04 +0300 |
---|---|---|
committer | somratpro <abdulmonnafsomrat@gmail.com> | 2020-11-05 06:50:04 +0300 |
commit | 995ed2f6873584921378a26f7ffeaf2a6512baae (patch) | |
tree | b9df5d70dc788ce5e3dd7f6aa17db87a856fe5ff | |
parent | bcc70042cc5fd9a7d3c380debe2412f1fa311644 (diff) |
docs topic icon is now optional
-rw-r--r-- | layouts/index.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/index.html b/layouts/index.html index 83a818a..8b3973f 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -11,9 +11,9 @@ {{ range (where .Site.Pages "Type" "docs") }} <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"> - <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> - <p class="mb-0">{{ .Params.Description }}</p> + {{with .Params.description}}<p class="mb-0">{{. | markdownify}}</p>{{end}} </a> </div> {{ end }} |