From 327bb3752de0b1cb79c498c306567149472f1b8c Mon Sep 17 00:00:00 2001 From: Michael Schnerring <3743342+schnerring@users.noreply.github.com> Date: Thu, 29 Aug 2024 15:24:57 +0200 Subject: [PATCH] Upgrade Tabler Icons to v3 --- README.md | 8 +++++--- config/_default/config.toml | 2 +- layouts/partials/header.html | 6 +++--- package-lock.json | 15 ++++++++------- package.hugo.json | 2 +- package.json | 2 +- 6 files changed, 19 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 1968b17ce..ec8a1fead 100644 --- a/README.md +++ b/README.md @@ -376,13 +376,15 @@ Configure social share links in the Hugo config like this: formatString = "https://reddit.com/submit?url={url}&title={title}" [[params.socialShare]] iconSuite = "tabler-icon" - iconName = "mail" + iconName = "outline/mail" formatString = "mailto:?subject={title}&body={url}" ``` -Use the `iconSuite` option to specify the icon suite used for the social share +Use the `iconSuite` setting to specify the icon suite used for the social share link: `simple-icon` or `tabler-icon`. Select an icon from the suite with the -`iconName` option. +`iconName` setting. Tabler icons come in two distinct styles, `filled` and +`outline`. You'll have to the prefix the `iconName` accordingly, e.g. +`iconName = "outline/sun"`. The `formatString` supports the following placeholders: diff --git a/config/_default/config.toml b/config/_default/config.toml index 52359c98e..138bb24f3 100644 --- a/config/_default/config.toml +++ b/config/_default/config.toml @@ -136,7 +136,7 @@ enableRobotsTXT = true formatString = "https://telegram.me/share/url?url={url}&text={title}" [[params.socialShare]] iconSuite = "tabler-icon" - iconName = "mail" + iconName = "outline/mail" formatString = "mailto:?subject={title}&body={url}" [menu] diff --git a/layouts/partials/header.html b/layouts/partials/header.html index b573ccb13..c3ab85f1a 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -39,7 +39,7 @@ - {{ partial "icons/tabler-icon.html" "menu-2" }} + {{ partial "icons/tabler-icon.html" "outline/menu-2" }}