IMPROVEMENT make pangu optional & make hugo comments
This commit is contained in:
parent
07d45aa322
commit
f6ca73459c
3 changed files with 29 additions and 10 deletions
|
@ -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 }}
|
Loading…
Add table
Add a link
Reference in a new issue