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

github.com/twbs/icons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'docs/layouts/partials/icons-list.html')
-rw-r--r--docs/layouts/partials/icons-list.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/layouts/partials/icons-list.html b/docs/layouts/partials/icons-list.html
new file mode 100644
index 000000000..5165dc1bd
--- /dev/null
+++ b/docs/layouts/partials/icons-list.html
@@ -0,0 +1,16 @@
+<ul class="row list-unstyled list">
+{{- $dirName := "icons" -}}
+
+{{- range (readDir $dirName) -}}
+ {{- $filenameWithExt := split .Name "." -}}
+ {{- $filename := index $filenameWithExt 0 -}}
+ {{- $name := humanize $filename -}}
+ <li class="col-4 col-sm-3 col-lg-2 mb-4">
+ <div class="p-3 mb-2 border text-center rounded">
+ {{ readFile (printf "%s/%s" $dirName .Name) | chomp | safeHTML }}
+ </div>
+ <div class="name text-muted text-center pt-1">{{ $name }}</div>
+ </li>
+{{ end -}}
+</ul>
+ \ No newline at end of file