Upload New File

parent 86a28c65
{{ $filename := add (add "shortcodes/icon-block-six-" (.Get "number")) ".json" }}
{{ with .Site.GetPage .Page.File.Path}}
{{ $resource := (.Resources.GetMatch $filename).RelPermalink }}
{{ $fields := getJSON "content" $resource }}
<div class="row justify-content-lg-between">
{{ range $fields }}
<div class="col-sm-6 col-lg-5 mb-5">
<div class="d-flex">
<div class="flex-shrink-0">
<i class="{{ .type }} fs-1 text-dark"></i>
</div>
<div class="flex-grow-1 ms-5">
{{ if and (ne .title nil) (ne .title "") }}
<h5>{{ .title }}</h5>
{{ end }}
{{ if and (ne .content nil) (ne .content "") }}
<p>{{ .content }}</p>
{{ end }}
</div>
</div>
</div>
{{ end }}
</div>
{{ end }}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment