summaryrefslogtreecommitdiff
path: root/exampleSite/layouts
diff options
context:
space:
mode:
authorReorx <novoreorx@gmail.com>2022-04-14 11:38:07 +0800
committerReorx <novoreorx@gmail.com>2022-04-14 11:38:07 +0800
commit883c9ec553e3fcfb9067e2d75fd1f17c72b855bf (patch)
tree157dd20286e88e827518c67bcb1ffbff95b28f2e /exampleSite/layouts
parent7880623a8d195abb0b500b17cbf8f3e62fd93fc7 (diff)
add exampleSite
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>
+