Skip to content

Commit 7e8dfa8

Browse files
committed
Feature: Add feather icon support
1 parent fd2aee1 commit 7e8dfa8

File tree

6 files changed

+42
-0
lines changed

6 files changed

+42
-0
lines changed

assets/css/v2/style.css

+12
Original file line numberDiff line numberDiff line change
@@ -1483,6 +1483,18 @@ hr {
14831483
border: 1px solid var(--color-divider);
14841484
}
14851485

1486+
.feather {
1487+
width: 1.8ch;
1488+
height: 1.8ch;
1489+
stroke: currentColor;
1490+
fill: none;
1491+
stroke-width: 2;
1492+
stroke-linecap: square;
1493+
stroke-linejoin: square;
1494+
vertical-align: sub;
1495+
margin: 0;
1496+
}
1497+
14861498
/* FILTHY HACKS BEGIN */
14871499

14881500
/* Override logo with black text version */
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
description: Feather icon usage
3+
title: Feather
4+
weight: 300
5+
toc: true
6+
---
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
description: Where feather icons are allowed to be used
3+
title: Permitted usage
4+
weight: 100
5+
---
6+
7+
[Feather Icons](https://feathericons.com/) is a free icon library with a permissive license (MIT). We use it for our minimal icon needs in place of FontAwesome in Oldframe.
8+
9+
{{<fe "circle">}}
10+
11+
[Feather link{{<fe "circle">}}](#)
12+
13+
{{<fe "circle">}} in text.
14+
15+
{{<warning>}}
16+
This is a Warning callout. There was previously a bug with **bold text** that we should be aware of and continue to check for. This callout was invoked with the `<warning>` shortcode. It has no custom title. {{<fe "alert-triangle">}}
17+
{{</warning>}}

layouts/partials/feather.html

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{{- /* Usage: */ -}}
2+
{{- /* (dict "context" . "icon" "circle") */ -}}
3+
<svg class="feather">
4+
<use href="/images/feather-sprite.svg#{{ .icon }}"></use>
5+
</svg>

layouts/shortcodes/fe.html

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{{ partial "feather" (dict "context" . "icon" (.Get 0)) }}

static/images/feather-sprite.svg

+1
Loading

0 commit comments

Comments
 (0)