1
0
mirror of https://github.com/tabler/tabler-icons.git synced 2025-08-31 01:30:04 +02:00

icons dist

This commit is contained in:
codecalm
2020-02-28 14:43:06 +01:00
parent 5647e0a114
commit 4aef96b469
6 changed files with 12 additions and 7 deletions

View File

@@ -3,6 +3,13 @@ plugins:
exclude:
- .idea/*
- package.json
defaults:
- scope:
type: "icons"
values:
layout: icon
collections:
icons:

View File

@@ -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 }}

3
_layouts/icon.html Normal file
View File

@@ -0,0 +1,3 @@
---
---
{% include icon.html name=page.slug %}

View File

@@ -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>