Browse Source

icons dist

pull/2/head
codecalm 5 years ago
parent
commit
4aef96b469
  1. 7
      _config.yml
  2. 7
      _includes/icon.html
  3. 3
      _layouts/icon.html
  4. 0
      bg.svg
  5. 2
      index.html
  6. 0
      style.scss

7
_config.yml

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

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

3
_layouts/icon.html

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

0
assets/bg.svg → bg.svg

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

0
assets/style.scss → style.scss

Loading…
Cancel
Save