icons dist
This commit is contained in:
parent
5647e0a114
commit
4aef96b469
|
|
@ -3,6 +3,13 @@ plugins:
|
|||
|
||||
exclude:
|
||||
- .idea/*
|
||||
- package.json
|
||||
|
||||
defaults:
|
||||
- scope:
|
||||
type: "icons"
|
||||
values:
|
||||
layout: icon
|
||||
|
||||
collections:
|
||||
icons:
|
||||
|
|
|
|||
|
|
@ -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 }}
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue