Skip to content

Commit f3dfa1a

Browse files
committed
Icon: Refactored to icon shortcode instead of fe + updated old icon code
1 parent 9db8c04 commit f3dfa1a

File tree

9 files changed

+13
-34
lines changed

9 files changed

+13
-34
lines changed

exampleSite/content/test-product/feather/_index.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

exampleSite/content/test-product/feather/permitted.md

Lines changed: 0 additions & 17 deletions
This file was deleted.

exampleSite/content/test-product/lucide/permitted.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,16 @@ weight: 100
66

77
[Lucide Icons](https://lucide.dev/) is a free icon library with a permissive license (MIT). We use it for our minimal icon needs in place of FontAwesome in Oldframe.
88

9-
{{<fe "book-headphones">}}
9+
{{<icon "book-headphones">}}
1010

11-
[Lucide link{{<fe "circle">}}](#)
11+
[Lucide link{{<icon "circle">}}](#)
1212

13-
{{<fe "circle">}} in text.
13+
{{<icon "circle">}} in text.
14+
15+
{{<icon-bug>}}
16+
{{<icon-feature>}}
17+
{{<icon-info>}}
18+
{{<icon-resolved>}}
1419

1520
Here are some icons that are using font-awesome but should be backwards compatible:
1621
<i class="fa-solid fa-check" style="color:green"></i>
@@ -54,5 +59,5 @@ Here are some icons that are using font-awesome but should be backwards compatib
5459
<i class="fa fa-chevron-down"></i>
5560
<i class="fas fa-flask fa-lg beta-icon"></i>
5661
{{<warning>}}
57-
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 "octagon-alert">}}
62+
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. {{<icon "octagon-alert">}}
5863
{{</warning>}}

layouts/shortcodes/fa.html

Lines changed: 0 additions & 1 deletion
This file was deleted.

layouts/shortcodes/icon-bug.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<i class="fa-solid fa-bug" style="color:#E4002B"></i>
1+
{{ partial "lucide" (dict "context" . "icon" "bug" "style" "color:#E4002B") }}

layouts/shortcodes/icon-feature.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<i class="fa-solid fa-file-circle-plus" style="color:#009639"></i>
1+
{{ partial "lucide" (dict "context" . "icon" "file-plus" "style" "color:#009639") }}

layouts/shortcodes/icon-info.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<i class="fa-solid fa-circle-info" style="color:#1d9cd3;"></i>
1+
{{ partial "lucide" (dict "context" . "icon" "info" "style" "color:#1d9cd3") }}

layouts/shortcodes/icon-resolved.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<i class="fa-solid fa-bug-slash" style="color:#666666"></i>
1+
{{ partial "lucide" (dict "context" . "icon" "bug-off" "style" "color:#666666") }}
File renamed without changes.

0 commit comments

Comments
 (0)