From 25eebf642f416115ec2287d89f4e58e259101caa Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Thu, 16 Feb 2023 17:47:23 +0800 Subject: [PATCH] :bug: Fix: missing parameter requiredFields for Valine --- CHANGELOG.md | 9 ++++++++- config.toml | 3 ++- docs | 2 +- layouts/partials/single/comment.html | 3 +++ 4 files changed, 14 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index df167324..77b03abd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,14 +5,21 @@ All notable changes to this project will be documented in this file. ## v0.2.18 +## Breaking Updates + +- [#288](https://github.com/hugo-fixit/FixIt/pull/288) + +## What's New + > Snapshot: <> - :sparkles: Feat: add instant page (@Mejituu [#279](https://github.com/hugo-fixit/FixIt/pull/279)) - :sparkles: Feat: add `force` option value to `params.page.lightgallery` - :bug: Fix: donate images without lazy loading (@Mejituu [#279](https://github.com/hugo-fixit/FixIt/pull/279)) - :bug: Fix: discordinvite typo (@mathieu-gilloots [#282](https://github.com/hugo-fixit/FixIt/pull/282)) +- :bug: Fix: missing parameter `requiredFields` for Valine - :recycle: Refactor: image lazy loading ([#283](https://github.com/hugo-fixit/FixIt/pull/283)) -- :recycle: Refactor: author's avatar of post or profile ([#261](https://github.com/hugo-fixit/FixIt/discussions/261)) +- :recycle: Refactor: author's avatar of post or profile ([#288](https://github.com/hugo-fixit/FixIt/pull/288)) - :art: Style: fix `#comments` css style conflict ([#269](https://github.com/hugo-fixit/FixIt/issues/269)) - :wrench: Chore: change the theme minimum supported Hugo versions above **0.89.0** - :arrow_up: Chore(libs): diff --git a/config.toml b/config.toml index f59f4579..b398aa4a 100644 --- a/config.toml +++ b/config.toml @@ -529,7 +529,8 @@ appKey = "" placeholder = "" avatar = "mp" - meta= "" + meta = "" + requiredFields = "" pageSize = 10 lang = "" visitor = true diff --git a/docs b/docs index d96d65c6..58c46249 160000 --- a/docs +++ b/docs @@ -1 +1 @@ -Subproject commit d96d65c6a339ed5920eccff15b4821a1b3a75ddf +Subproject commit 58c462496ac9bc30c8917a7e8bc3bd1d796f88e4 diff --git a/layouts/partials/single/comment.html b/layouts/partials/single/comment.html index f88b609b..450a101e 100644 --- a/layouts/partials/single/comment.html +++ b/layouts/partials/single/comment.html @@ -94,6 +94,9 @@ {{- with $valine.meta -}} {{- $commentConfig = dict "meta" . | dict "valine" | merge $commentConfig -}} {{- end -}} + {{- with $valine.requiredFields -}} + {{- $commentConfig = dict "requiredFields" . | dict "valine" | merge $commentConfig -}} + {{- end -}} {{- with $valine.pageSize -}} {{- $commentConfig = dict "pageSize" . | dict "valine" | merge $commentConfig -}} {{- end -}}