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:
@@ -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 }}
|
||||
|
3
_layouts/icon.html
Normal file
3
_layouts/icon.html
Normal file
@@ -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>
|
||||
|
Reference in New Issue
Block a user