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

@ -41,9 +41,11 @@
<link rel="stylesheet" href="https://unpkg.com/purecss@2.0.6/build/grids-min.css">
<link rel="stylesheet" href="https://unpkg.com/purecss@2.0.6/build/grids-responsive-min.css">
<!-- pangu support (js in the end before the body closing tag) -->
<!-- todo make it optional -->
{{/* pangu support: js in the end before the body closing tag */}}
{{ if .Site.Params.features.pangu }}
<!-- pangu support -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/pangu/4.0.7/pangu.min.js"></script>
{{ end }}
<!-- website title -->
<title>{{ .Site.Params.title }}</title>