summaryrefslogtreecommitdiff
path: root/exampleSite/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'exampleSite/layouts')
-rw-r--r--exampleSite/layouts/_default/icons.html13
-rw-r--r--exampleSite/layouts/partials/extend_head.html26
2 files changed, 39 insertions, 0 deletions
diff --git a/exampleSite/layouts/_default/icons.html b/exampleSite/layouts/_default/icons.html
new file mode 100644
index 0000000..bc542a7
--- /dev/null
+++ b/exampleSite/layouts/_default/icons.html
@@ -0,0 +1,13 @@
+{{- define "main" }}
+<h1>{{ .Title }}</h1>
+
+<div id="icons">
+{{ range $name, $icon := $.Site.Data.svg }}
+ <div class="item">
+ <div class="icon">{{ safeHTML $icon }}</div>
+ <div class="name">{{ $name }}</div>
+ </div>
+{{ end }}
+</div>
+
+{{- end }}
diff --git a/exampleSite/layouts/partials/extend_head.html b/exampleSite/layouts/partials/extend_head.html
new file mode 100644
index 0000000..07132ea
--- /dev/null
+++ b/exampleSite/layouts/partials/extend_head.html
@@ -0,0 +1,26 @@
+<style>
+ #icons {
+ display: flex;
+ flex-wrap: wrap;
+ margin-top: 2em;
+ }
+ #icons .item {
+ width: 80px;
+ height: 50px;
+ margin: 10px;
+ }
+ #icons .item .name {
+ font-size: 12px;
+ user-select: all;
+ text-align: center;
+ }
+ #icons .item .icon {
+ display: flex;
+ justify-content: center;
+ }
+ #icons .item svg {
+ width: 30px;
+ height: 30px;
+ }
+</style>
+