From 16482da1198be79e3475649de89dc44479456625 Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Sun, 28 Aug 2022 15:04:31 +0800 Subject: [PATCH] :sparkles: Feat(menu): add `params.icon` support for menu items --- CHANGELOG.md | 1 + docs | 2 +- layouts/partials/header.html | 51 +++++++++++++++++++++++------------- 3 files changed, 35 insertions(+), 19 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 51a7ac2e..e12d41aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ All notable changes to this project will be documented in this file. - :sparkles: Feat: add `raw` shortcode - :sparkles: Feat: add custom aside template in post page ([#172](https://github.com/hugo-fixit/FixIt/issues/172)) - :sparkles: Feat(math): add more block delimiter support for math +- :sparkles: Feat(menu): add `params.icon` support for menu items - :wheelchair: Feat(accessibility): using `aria-hidden=true` on an icon font that AT should ignore - :bug: Fix: add function doc2unix to unify new lines symbol between Windows and Unix/Mac OS - :bug: Fix: author display error in post and markdown file diff --git a/docs b/docs index c90e744c..cf0f53a8 160000 --- a/docs +++ b/docs @@ -1 +1 @@ -Subproject commit c90e744c7f8baff3843967a2da2e2916d46bbfd8 +Subproject commit cf0f53a8b6ff951b8c5a68a0d71cb8ebb2220325 diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 6847de18..ccee8cb1 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -44,17 +44,20 @@ {{- $url = .RelPermalink -}} {{- end -}} {{- if (ne .Params.Draft true) | or $buildDrafts -}} -