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 8cfedc15..69ce589b 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 d61658ed..22834ebc 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 00000000..532da97c
--- /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 1f7fcb1b..1f7fcb1b 100644
--- a/assets/bg.svg
+++ b/bg.svg
diff --git a/index.html b/index.html
index b98036f0..e54a3bdc 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 8769913f..8769913f 100644
--- a/assets/style.scss
+++ b/style.scss