Skip to content

Commit 42ab3ad

Browse files
committed
Feature: Add feather icon support
1 parent 6a444e1 commit 42ab3ad

File tree

6 files changed

+42
-0
lines changed

6 files changed

+42
-0
lines changed

assets/css/v2/style.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1469,6 +1469,18 @@ hr {
14691469
border: 1px solid var(--color-divider);
14701470
}
14711471

1472+
.feather {
1473+
width: 1.8ch;
1474+
height: 1.8ch;
1475+
stroke: currentColor;
1476+
fill: none;
1477+
stroke-width: 2;
1478+
stroke-linecap: square;
1479+
stroke-linejoin: square;
1480+
vertical-align: sub;
1481+
margin: 0;
1482+
}
1483+
14721484
/* FILTHY HACKS BEGIN */
14731485

14741486
/* Override logo with black text version */
Lines changed: 6 additions & 0 deletions
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+
---
Lines changed: 17 additions & 0 deletions
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

Lines changed: 5 additions & 0 deletions
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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{{ partial "feather" (dict "context" . "icon" (.Get 0)) }}

static/images/feather-sprite.svg

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)