aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--_config.yml7
-rw-r--r--_includes/icon.html7
-rw-r--r--_layouts/icon.html3
-rw-r--r--bg.svg (renamed from assets/bg.svg)0
-rw-r--r--index.html2
-rw-r--r--style.scss (renamed from assets/style.scss)0
6 files changed, 12 insertions, 7 deletions
diff --git a/_config.yml b/_config.yml
index 8cfedc1..69ce589 100644
--- a/_config.yml
+++ b/_config.yml
@@ -3,6 +3,13 @@ plugins:
exclude:
- .idea/*
+ - package.json
+
+defaults:
+ - scope:
+ type: "icons"
+ values:
+ layout: icon
collections:
icons:
diff --git a/_includes/icon.html b/_includes/icon.html
index d61658e..22834eb 100644
--- a/_includes/icon.html
+++ b/_includes/icon.html
@@ -1,6 +1 @@
-{% assign name = include.name %}
-{% assign icon = site.icons | where: "slug", name | first %}
-
-{% assign content = icon.content | replace: '<svg', '<svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"' %}
-
-{{ content }}
+{% assign name = include.name %}{% assign icon = site.icons | where: "slug", name | first %}{% assign content = icon.content | replace: '<svg', '<svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"' %}{{ content }}
diff --git a/_layouts/icon.html b/_layouts/icon.html
new file mode 100644
index 0000000..532da97
--- /dev/null
+++ b/_layouts/icon.html
@@ -0,0 +1,3 @@
+---
+---
+{% include icon.html name=page.slug %}
diff --git a/assets/bg.svg b/bg.svg
index 1f7fcb1..1f7fcb1 100644
--- a/assets/bg.svg
+++ b/bg.svg
diff --git a/index.html b/index.html
index b98036f..e54a3bd 100644
--- a/index.html
+++ b/index.html
@@ -8,7 +8,7 @@
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
- <link rel="stylesheet" href="{{ site.baseurl }}/assets/style.css">
+ <link rel="stylesheet" href="{{ site.baseurl }}/style.css">
<title>Tabler Icons</title>
<style>
diff --git a/assets/style.scss b/style.scss
index 8769913..8769913 100644
--- a/assets/style.scss
+++ b/style.scss