Welcome to mirror list, hosted at ThFree Co, Russian Federation.

bullet-list.html « partials « layouts - github.com/tylerjlawson/simple-resume.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 25b48325ea3ec8a9f8ee7a31a79faa2da90f216d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{{ with . }}
  <ul>
    {{ $array := . }}
    {{ range $index, $value := . }}
      {{ if eq (printf "%T" $value) "string" }}
        <li>
          {{ $value | markdownify }}
          {{ $next := (index $array (add 1 $index)) }}
          {{ if eq (printf "%T" $next) "[]interface {}" }}
            {{ partial "bullet-list.html" $next }}
          {{ end }}
        </li>
      {{ end }}
    {{ end }}
  </ul>
{{ end }}