From 09060d0228e1447fadae90f305509d9cc1240624 Mon Sep 17 00:00:00 2001 From: WaterLemons2k <62788816+WaterLemons2k@users.noreply.github.com> Date: Mon, 19 Feb 2024 20:46:03 +0800 Subject: [PATCH] fix(partials): ensure params always exist If the `params` key is not defined in the config file, accessing `params` results in a `nil pointer evaluating interface {}` error because `params` does not exist. This can be fixed by ensuring that params is always a map. --- layouts/partials/sidebar/right.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/layouts/partials/sidebar/right.html b/layouts/partials/sidebar/right.html index d2a6ae8..8064df5 100644 --- a/layouts/partials/sidebar/right.html +++ b/layouts/partials/sidebar/right.html @@ -4,7 +4,10 @@