IMPROVEMENT make pangu optional & make hugo comments

This commit is contained in:
FarseaSH 2022-03-25 00:32:54 +08:00
parent 07d45aa322
commit f6ca73459c
3 changed files with 29 additions and 10 deletions

View file

@ -14,6 +14,8 @@
<!-- fancybox -->
<script src="https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox.umd.js"></script>
{{/* a pangu support */}}
{{ if .Site.Params.features.pangu }}
<!-- pangu.js -->
<script>
pangu.spacingElementByClassName('moment-note');
@ -23,4 +25,5 @@
// listen to any DOM change and automatically perform spacing via MutationObserver()
pangu.autoSpacingPage();
});
</script>
</script>
{{ end }}