diff options
author | codecalm <codecalm@gmail.com> | 2020-02-28 14:43:06 +0100 |
---|---|---|
committer | codecalm <codecalm@gmail.com> | 2020-02-28 14:43:06 +0100 |
commit | 4aef96b4693f6030d29fbd6c1d8fb00fb6087c88 (patch) | |
tree | cabf43e3e219daf009edfefb3adc62dba3085053 | |
parent | chevrons (diff) | |
download | tabler-icons-4aef96b4693f6030d29fbd6c1d8fb00fb6087c88.tar.xz |
icons dist
-rw-r--r-- | _config.yml | 7 | ||||
-rw-r--r-- | _includes/icon.html | 7 | ||||
-rw-r--r-- | _layouts/icon.html | 3 | ||||
-rw-r--r-- | bg.svg (renamed from assets/bg.svg) | 0 | ||||
-rw-r--r-- | index.html | 2 | ||||
-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 %} @@ -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 |