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

github.com/tylerjlawson/simple-resume.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/bullet-list.html')
-rw-r--r--layouts/partials/bullet-list.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/layouts/partials/bullet-list.html b/layouts/partials/bullet-list.html
new file mode 100644
index 0000000..25b4832
--- /dev/null
+++ b/layouts/partials/bullet-list.html
@@ -0,0 +1,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 }}