icon-block-six.html 900 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
{{ $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 }}