From d061469497412d3ac9d0d4237140ec180bbd9528 Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Sun, 28 Aug 2022 20:09:02 +0800 Subject: [PATCH] :sparkles: Feat(menu): add `params.type` for menu items --- CHANGELOG.md | 4 ++-- docs | 2 +- layouts/partials/header.html | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5895cec8..757063a8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,16 +6,16 @@ All notable changes to this project will be documented in this file. ## v0.2.16 - :sparkles: Feat: add `raw` shortcode +- :sparkles: Feat(menu): add params: `icon`, `type` for menu items - :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): use `aria-hidden=true` on icons 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 - :bug: Fix: use data attributes or class replace for custom attributes - :bug: Fix: attribute `media` not allowed on element meta in `[name=theme-color]` - :bug: Fix: support smooth migration from LoveIt to FixIt ([#174](https://github.com/hugo-fixit/FixIt/discussions/174) [#182](https://github.com/hugo-fixit/FixIt/issues/182)) -- :bug: Fix: `center-quote` shortcode when config unsafe = false (@yureiita[#160](https://github.com/hugo-fixit/FixIt/pull/160)) +- :bug: Fix: `center-quote` shortcode rendering error when config `unsafe = false` (@yureiita[#160](https://github.com/hugo-fixit/FixIt/pull/160)) - :art: Style: change the default icons of some social links - :globe_with_meridians: Docs(i18n): update pt-br, de in i18n - :mag: Perf(SEO): enhance SEO performance diff --git a/docs b/docs index cf0f53a8..ea452a6b 160000 --- a/docs +++ b/docs @@ -1 +1 @@ -Subproject commit cf0f53a8b6ff951b8c5a68a0d71cb8ebb2220325 +Subproject commit ea452a6bf9b83d9ddfadc077dc4028e577a326a0 diff --git a/layouts/partials/header.html b/layouts/partials/header.html index ccee8cb1..a9f01634 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -43,7 +43,7 @@ {{- with .Page -}} {{- $url = .RelPermalink -}} {{- end -}} - {{- if (ne .Params.Draft true) | or $buildDrafts -}} + {{- if (ne .Params.Draft true) | or $buildDrafts | and (ne .Params.Type "mobile") -}}