From db7095c0bbdf95c56190b770197743a163a4fe9a Mon Sep 17 00:00:00 2001 From: elkan1788 Date: Tue, 18 Jul 2023 11:56:38 +0800 Subject: [PATCH] :bug: Fixed the 51la widget display none. --- VERSION | 2 +- data/config.yaml | 2 +- layouts/partials/scripts/global.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index 689f7fb..ae6e65b 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -4.5.2 \ No newline at end of file +4.5.3 \ No newline at end of file diff --git a/data/config.yaml b/data/config.yaml index 8d405bd..c49db0c 100644 --- a/data/config.yaml +++ b/data/config.yaml @@ -1,5 +1,5 @@ # Hugo NexT theme's custom config -version: 4.5.2 +version: 4.5.3 domain: hugo-next.eu.org \ No newline at end of file diff --git a/layouts/partials/scripts/global.html b/layouts/partials/scripts/global.html index 175e186..649804b 100644 --- a/layouts/partials/scripts/global.html +++ b/layouts/partials/scripts/global.html @@ -82,7 +82,7 @@ {{ end }} {{/* Other not useful scripts, eg: 51la widget, translate */}} -{{ with .Site.Params.siteState.statistic }} +{{ with .Site.Params.siteState.views }} {{ if and .enable (eq .plugin "51la") }} {{ $lawt := resources.Get "js/third-party/others/lawidget.js" }} {{ $nextjs = $nextjs | append $lawt }}