diff --git a/CHANGELOG.md b/CHANGELOG.md index 639d7f52..d9ecfa2e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,7 +18,7 @@ All notable changes to this project will be documented in this file. - :sparkles: Feat: link shortcode add `external-icon` option ([#96](https://github.com/Lruihao/FixIt/issues/96)) - :sparkles: Feat: add GitHub Corners support ([#106](https://github.com/Lruihao/FixIt/issues/106)) - :sparkles: Feat: add local avatar and gravatar support for post author ([#125](https://github.com/Lruihao/FixIt/issues/125)) -- :sparkles: Feat: add total word count support in footer ([#124](https://github.com/Lruihao/FixIt/issues/124)) +- :sparkles: Feat: add ~~total word count support in footer~~ ([#124](https://github.com/Lruihao/FixIt/issues/124)) - :sparkles: Feat: add "Edit this page" button support ([#103](https://github.com/Lruihao/FixIt/issues/103)) - :sparkles: Feat: add count badge for taxonomy ([#122](https://github.com/Lruihao/FixIt/issues/122)) - :zap: Perf: add Gravatar config support diff --git a/layouts/_default/section.html b/layouts/_default/section.html index 2598d169..ee64a012 100644 --- a/layouts/_default/section.html +++ b/layouts/_default/section.html @@ -20,7 +20,7 @@ {{- end -}} {{- partial "recently-updated.html" . -}} {{- range $pages.PageGroups -}} -

{{ .Key }}

+

{{ .Key }}

{{- range .Pages -}}
diff --git a/layouts/partials/assets.html b/layouts/partials/assets.html index c59cda25..9732b383 100644 --- a/layouts/partials/assets.html +++ b/layouts/partials/assets.html @@ -221,6 +221,7 @@ {{- /* Theme script */ -}} {{- dict "Source" "js/theme.min.js" "Fingerprint" $fingerprint "Defer" true | dict "Scratch" .Scratch "Data" | partial "scratch/script.html" -}} +{{- $_ := (resources.Get "js/theme.min.js.map").RelPermalink -}} {{- /* Custom script */ -}} {{- if eq .Site.Params.customJS.enable true -}} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index b3b44ccb..1758603d 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -53,7 +53,9 @@ {{- end -}} {{- /* Total word count */ -}} - {{- if ne .Site.Params.footer.wordCount false -}} + {{- /* There is a fatal bug. See https://github.com/Lruihao/FixIt/issues/124 */ -}} + {{- /* if ne .Site.Params.footer.wordCount false */ -}} + {{- if false -}} {{- $localData := newScratch -}} {{- range (where .Site.Pages "Kind" "page") -}} {{- $localData.Add "totalWordCount" .WordCount -}}