diff --git a/CHANGELOG.md b/CHANGELOG.md index b85c81c..9f0facb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ### Changed +- Upgraded SVG icons to FontAwesome 6: + - New icons for Hashnode, bug, check, comment, light bulb, list, pencil, skull, tag, and information. + - ⚠️ The `exclamation-triangle` icon has been renamed `triangle-exclamation` + - ⚠️ The `times` icon has been renamed `xmark` + - ⚠️ The `stackoverflow` icon has been renamed `stack-overflow` - Markdown images and `figure` shortcode now search the `assets/` directory if an image cannot be found in page bundle ([#126](https://github.com/jpanther/congo/issues/126)) - Markdown images and `figure` shortcode now fallback to static assets if an image is not provided as a Hugo resource ([#126](https://github.com/jpanther/congo/issues/126)) - Taxonomy term listings now honour the `groupByYear` parameter ([#145](https://github.com/jpanther/congo/pull/145)) diff --git a/README.md b/README.md index a9facca..e29878a 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ Congo is designed to be a powerful, lightweight theme for [Hugo](https://gohugo. - Diagrams and visualisations using Mermaid - Charts using Chart.js - Mathematical notation using KaTeX -- SVG icons from FontAwesome 5 +- SVG icons from FontAwesome 6 - Automatic image resizing using Hugo Pipes - Heading anchors, Tables of Contents, Code copy, Buttons, Badges and more - HTML and Emoji support in articles 🎉 diff --git a/assets/icons/amazon.svg b/assets/icons/amazon.svg index b2b8a56..32047db 100644 --- a/assets/icons/amazon.svg +++ b/assets/icons/amazon.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/assets/icons/apple.svg b/assets/icons/apple.svg index 4adc2be..d1c2233 100644 --- a/assets/icons/apple.svg +++ b/assets/icons/apple.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/assets/icons/blogger.svg b/assets/icons/blogger.svg index d9bf80c..194dd9b 100644 --- a/assets/icons/blogger.svg +++ b/assets/icons/blogger.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/assets/icons/bug.svg b/assets/icons/bug.svg new file mode 100644 index 0000000..97cae6e --- /dev/null +++ b/assets/icons/bug.svg @@ -0,0 +1 @@ + diff --git a/assets/icons/check.svg b/assets/icons/check.svg new file mode 100644 index 0000000..a6938bd --- /dev/null +++ b/assets/icons/check.svg @@ -0,0 +1 @@ + diff --git a/assets/icons/circle-info.svg b/assets/icons/circle-info.svg new file mode 100644 index 0000000..bd32225 --- /dev/null +++ b/assets/icons/circle-info.svg @@ -0,0 +1 @@ + diff --git a/assets/icons/codepen.svg b/assets/icons/codepen.svg index 7a39ecd..52ec58a 100644 --- a/assets/icons/codepen.svg +++ b/assets/icons/codepen.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/assets/icons/comment.svg b/assets/icons/comment.svg new file mode 100644 index 0000000..2305041 --- /dev/null +++ b/assets/icons/comment.svg @@ -0,0 +1 @@ + diff --git a/assets/icons/dev.svg b/assets/icons/dev.svg index 547b411..7311e84 100644 --- a/assets/icons/dev.svg +++ b/assets/icons/dev.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/assets/icons/discord.svg b/assets/icons/discord.svg index 29d8307..75f1fc7 100644 --- a/assets/icons/discord.svg +++ b/assets/icons/discord.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/assets/icons/dribbble.svg b/assets/icons/dribbble.svg index 8965a0a..c2613fe 100644 --- a/assets/icons/dribbble.svg +++ b/assets/icons/dribbble.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/assets/icons/edit.svg b/assets/icons/edit.svg index 174efd8..82a6035 100644 --- a/assets/icons/edit.svg +++ b/assets/icons/edit.svg @@ -1 +1 @@ - + diff --git a/assets/icons/email.svg b/assets/icons/email.svg index 8b72d6f..fa215c6 100644 --- a/assets/icons/email.svg +++ b/assets/icons/email.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/assets/icons/exclamation-triangle.svg b/assets/icons/exclamation-triangle.svg deleted file mode 100644 index f316b16..0000000 --- a/assets/icons/exclamation-triangle.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/assets/icons/facebook.svg b/assets/icons/facebook.svg index 649b494..1535831 100644 --- a/assets/icons/facebook.svg +++ b/assets/icons/facebook.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/assets/icons/flickr.svg b/assets/icons/flickr.svg index 74796f5..fcd57c4 100644 --- a/assets/icons/flickr.svg +++ b/assets/icons/flickr.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/assets/icons/foursquare.svg b/assets/icons/foursquare.svg index b36f861..74c28e6 100644 --- a/assets/icons/foursquare.svg +++ b/assets/icons/foursquare.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/assets/icons/github.svg b/assets/icons/github.svg index 7870c06..ed8c470 100644 --- a/assets/icons/github.svg +++ b/assets/icons/github.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/assets/icons/gitlab.svg b/assets/icons/gitlab.svg index abc7fae..998e306 100644 --- a/assets/icons/gitlab.svg +++ b/assets/icons/gitlab.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/assets/icons/google.svg b/assets/icons/google.svg index 2218d96..7e10132 100644 --- a/assets/icons/google.svg +++ b/assets/icons/google.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/assets/icons/hashnode.svg b/assets/icons/hashnode.svg new file mode 100644 index 0000000..6ebe2db --- /dev/null +++ b/assets/icons/hashnode.svg @@ -0,0 +1 @@ + diff --git a/assets/icons/instagram.svg b/assets/icons/instagram.svg index 53ab311..3cd3d33 100644 --- a/assets/icons/instagram.svg +++ b/assets/icons/instagram.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/assets/icons/keybase.svg b/assets/icons/keybase.svg index dd1694e..998110e 100644 --- a/assets/icons/keybase.svg +++ b/assets/icons/keybase.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/assets/icons/kickstarter.svg b/assets/icons/kickstarter.svg index 6ff5928..4496981 100644 --- a/assets/icons/kickstarter.svg +++ b/assets/icons/kickstarter.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/assets/icons/lastfm.svg b/assets/icons/lastfm.svg index f0302e7..2b53341 100644 --- a/assets/icons/lastfm.svg +++ b/assets/icons/lastfm.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/assets/icons/lightbulb.svg b/assets/icons/lightbulb.svg new file mode 100644 index 0000000..5ffc710 --- /dev/null +++ b/assets/icons/lightbulb.svg @@ -0,0 +1 @@ + diff --git a/assets/icons/link.svg b/assets/icons/link.svg index 586901d..eb283c2 100644 --- a/assets/icons/link.svg +++ b/assets/icons/link.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/assets/icons/linkedin.svg b/assets/icons/linkedin.svg index 437b807..4e3948b 100644 --- a/assets/icons/linkedin.svg +++ b/assets/icons/linkedin.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/assets/icons/list.svg b/assets/icons/list.svg new file mode 100644 index 0000000..f7a7df4 --- /dev/null +++ b/assets/icons/list.svg @@ -0,0 +1 @@ + diff --git a/assets/icons/mastodon.svg b/assets/icons/mastodon.svg index 4257e7c..2c9db56 100644 --- a/assets/icons/mastodon.svg +++ b/assets/icons/mastodon.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/assets/icons/medium.svg b/assets/icons/medium.svg index c5da4f8..07d095d 100644 --- a/assets/icons/medium.svg +++ b/assets/icons/medium.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/assets/icons/microsoft.svg b/assets/icons/microsoft.svg index 4920b87..1bdb0c2 100644 --- a/assets/icons/microsoft.svg +++ b/assets/icons/microsoft.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/assets/icons/moon.svg b/assets/icons/moon.svg index 9fbb0a3..8356307 100644 --- a/assets/icons/moon.svg +++ b/assets/icons/moon.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/assets/icons/orcid.svg b/assets/icons/orcid.svg index 65aa73b..b7f1b25 100644 --- a/assets/icons/orcid.svg +++ b/assets/icons/orcid.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/assets/icons/patreon.svg b/assets/icons/patreon.svg index 6fe623e..bd2e994 100644 --- a/assets/icons/patreon.svg +++ b/assets/icons/patreon.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/assets/icons/pencil.svg b/assets/icons/pencil.svg new file mode 100644 index 0000000..29bd525 --- /dev/null +++ b/assets/icons/pencil.svg @@ -0,0 +1 @@ + diff --git a/assets/icons/pinterest.svg b/assets/icons/pinterest.svg index c445eb9..386481c 100644 --- a/assets/icons/pinterest.svg +++ b/assets/icons/pinterest.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/assets/icons/reddit.svg b/assets/icons/reddit.svg index 83ae62d..bb55eb5 100644 --- a/assets/icons/reddit.svg +++ b/assets/icons/reddit.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/assets/icons/researchgate.svg b/assets/icons/researchgate.svg index d4377d5..ad176db 100644 --- a/assets/icons/researchgate.svg +++ b/assets/icons/researchgate.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/assets/icons/search.svg b/assets/icons/search.svg index f41bbdd..15fe892 100644 --- a/assets/icons/search.svg +++ b/assets/icons/search.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/assets/icons/skull-crossbones.svg b/assets/icons/skull-crossbones.svg new file mode 100644 index 0000000..4e19f6e --- /dev/null +++ b/assets/icons/skull-crossbones.svg @@ -0,0 +1 @@ + diff --git a/assets/icons/slack.svg b/assets/icons/slack.svg index 3c8e900..69909d8 100644 --- a/assets/icons/slack.svg +++ b/assets/icons/slack.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/assets/icons/snapchat.svg b/assets/icons/snapchat.svg index 6e37c24..b6efeef 100644 --- a/assets/icons/snapchat.svg +++ b/assets/icons/snapchat.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/assets/icons/soundcloud.svg b/assets/icons/soundcloud.svg index 0119868..301c3d1 100644 --- a/assets/icons/soundcloud.svg +++ b/assets/icons/soundcloud.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/assets/icons/stack-overflow.svg b/assets/icons/stack-overflow.svg new file mode 100644 index 0000000..bba4159 --- /dev/null +++ b/assets/icons/stack-overflow.svg @@ -0,0 +1 @@ + diff --git a/assets/icons/stackoverflow.svg b/assets/icons/stackoverflow.svg deleted file mode 100644 index 59a5b77..0000000 --- a/assets/icons/stackoverflow.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/assets/icons/steam.svg b/assets/icons/steam.svg index 0bfb16d..6efd1fd 100644 --- a/assets/icons/steam.svg +++ b/assets/icons/steam.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/assets/icons/sun.svg b/assets/icons/sun.svg index 1a58612..34a57ec 100644 --- a/assets/icons/sun.svg +++ b/assets/icons/sun.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/assets/icons/tag.svg b/assets/icons/tag.svg new file mode 100644 index 0000000..c78e65b --- /dev/null +++ b/assets/icons/tag.svg @@ -0,0 +1 @@ + diff --git a/assets/icons/telegram.svg b/assets/icons/telegram.svg index 49bd008..4101aef 100644 --- a/assets/icons/telegram.svg +++ b/assets/icons/telegram.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/assets/icons/tiktok.svg b/assets/icons/tiktok.svg index 0fcd7b1..792a850 100644 --- a/assets/icons/tiktok.svg +++ b/assets/icons/tiktok.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/assets/icons/times.svg b/assets/icons/times.svg deleted file mode 100644 index 8144622..0000000 --- a/assets/icons/times.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/assets/icons/triangle-exclamation.svg b/assets/icons/triangle-exclamation.svg new file mode 100644 index 0000000..f501ce9 --- /dev/null +++ b/assets/icons/triangle-exclamation.svg @@ -0,0 +1 @@ + diff --git a/assets/icons/tumblr.svg b/assets/icons/tumblr.svg index 84ed909..1457d68 100644 --- a/assets/icons/tumblr.svg +++ b/assets/icons/tumblr.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/assets/icons/twitch.svg b/assets/icons/twitch.svg index 198dc64..a35fa55 100644 --- a/assets/icons/twitch.svg +++ b/assets/icons/twitch.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/assets/icons/twitter.svg b/assets/icons/twitter.svg index 9ac9e0b..3ab4c1c 100644 --- a/assets/icons/twitter.svg +++ b/assets/icons/twitter.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/assets/icons/whatsapp.svg b/assets/icons/whatsapp.svg index 9a37967..c1df966 100644 --- a/assets/icons/whatsapp.svg +++ b/assets/icons/whatsapp.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/assets/icons/xmark.svg b/assets/icons/xmark.svg new file mode 100644 index 0000000..a4c5121 --- /dev/null +++ b/assets/icons/xmark.svg @@ -0,0 +1 @@ + diff --git a/assets/icons/youtube.svg b/assets/icons/youtube.svg index f59312a..3fa4dad 100644 --- a/assets/icons/youtube.svg +++ b/assets/icons/youtube.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/exampleSite/content/_index.md b/exampleSite/content/_index.md index 24b50cd..6e0d8d5 100755 --- a/exampleSite/content/_index.md +++ b/exampleSite/content/_index.md @@ -11,7 +11,7 @@ This is a demo site built entirely using Congo. It also contains a complete set
page layout.
diff --git a/exampleSite/content/samples/icons.md b/exampleSite/content/samples/icons.md
index fe43e35..1559a39 100644
--- a/exampleSite/content/samples/icons.md
+++ b/exampleSite/content/samples/icons.md
@@ -1,13 +1,15 @@
---
title: "Icons"
date: 2020-08-14
+lastmod: 2022-03-09
draft: false
description: "Icon support in Congo."
slug: "icons"
tags: ["icons", "sample", "shortcodes"]
+showDateUpdated: true
---
-Congo has built-in support for a number of [FontAwesome 5](https://fontawesome.com/icons) icons. These can be included in your website through either the [icon partial]({{< ref "docs/partials#icon" >}}) or [icon shortcode]({{< ref "docs/shortcodes#icon" >}}).
+Congo has built-in support for a number of [FontAwesome 6](https://fontawesome.com/icons) icons. These can be included in your website through either the [icon partial]({{< ref "docs/partials#icon" >}}) or [icon shortcode]({{< ref "docs/shortcodes#icon" >}}).
Additionally, custom icons are also fully supported. Simply provide your own SVG icon assets by placing them in the `assets/icons/` directory in the root of your project. Any icons in the icons directory will then be available to use throughout the theme.
@@ -18,43 +20,55 @@ The full list of built-in icons and their corresponding names can referenced bel
| amazon | {{< icon amazon >}} |
| apple | {{< icon apple >}} |
| blogger | {{< icon blogger >}} |
+| bug | {{< icon bug >}} |
+| check | {{< icon check >}} |
+| circle-info | {{< icon circle-info >}} |
| codepen | {{< icon codepen >}} |
+| comment | {{< icon comment >}} |
| dev | {{< icon dev >}} |
| dribbble | {{< icon dribbble >}} |
| edit | {{< icon edit >}} |
| email | {{< icon email >}} |
-| exclamation-triangle | {{< icon exclamation-triangle >}} |
| facebook | {{< icon facebook >}} |
| flickr | {{< icon flickr >}} |
| foursquare | {{< icon foursquare >}} |
| github | {{< icon github >}} |
| gitlab | {{< icon gitlab >}} |
| google | {{< icon google >}} |
+| hashnode | {{< icon hashnode >}} |
| instagram | {{< icon instagram >}} |
| keybase | {{< icon keybase >}} |
| kickstarter | {{< icon kickstarter >}} |
| lastfm | {{< icon lastfm >}} |
+| lightbulb | {{< icon lightbulb >}} |
| link | {{< icon link >}} |
| linkedin | {{< icon linkedin >}} |
+| list | {{< icon list >}} |
| mastodon | {{< icon mastodon >}} |
| medium | {{< icon medium >}} |
| microsoft | {{< icon microsoft >}} |
| moon | {{< icon moon >}} |
| orcid | {{< icon orcid >}} |
| patreon | {{< icon patreon >}} |
+| pencil | {{< icon pencil >}} |
| pinterest | {{< icon pinterest >}} |
| reddit | {{< icon reddit >}} |
| researchgate | {{< icon researchgate >}} |
+| search | {{< icon search >}} |
+| skull-crossbones | {{< icon skull-crossbones >}} |
| slack | {{< icon slack >}} |
| snapchat | {{< icon snapchat >}} |
| soundcloud | {{< icon soundcloud >}} |
-| stackoverflow | {{< icon stackoverflow >}} |
+| stack-overflow | {{< icon stack-overflow >}} |
| steam | {{< icon steam >}} |
| sun | {{< icon sun >}} |
+| tag | {{< icon tag >}} |
| telegram | {{< icon telegram >}} |
| tiktok | {{< icon tiktok >}} |
+| triangle-exclamation | {{< icon triangle-exclamation >}} |
| tumblr | {{< icon tumblr >}} |
| twitch | {{< icon twitch >}} |
| twitter | {{< icon twitter >}} |
| whatsapp | {{< icon whatsapp >}} |
+| xmark | {{< icon xmark >}} |
| youtube | {{< icon youtube >}} |
diff --git a/layouts/partials/search.html b/layouts/partials/search.html
index 0a1eb06..feed6f9 100644
--- a/layouts/partials/search.html
+++ b/layouts/partials/search.html
@@ -25,7 +25,7 @@
class="flex items-center justify-center w-8 h-8 text-neutral-700 dark:text-neutral hover:text-primary-600 dark:hover:text-primary-400"
title="{{ i18n "search.close_button_title" }}"
>
- {{ partial "icon.html" "times" }}
+ {{ partial "icon.html" "xmark" }}