diff options
| author | Reorx <novoreorx@gmail.com> | 2022-05-28 02:10:33 +0800 |
|---|---|---|
| committer | Reorx <novoreorx@gmail.com> | 2022-05-28 02:10:33 +0800 |
| commit | c60eaeb53510978427107bfa0f758e37094d0da9 (patch) | |
| tree | ffc15d16e22476fb943d20bc7b36fae9ac282304 /layouts/partials/footer.html | |
| parent | 0d1dec9d55f27dbed27236bd3750011d7a1539e8 (diff) | |
instantclick: support updating head tags
only for meta and link (not stylesheet) tags
Diffstat (limited to 'layouts/partials/footer.html')
| -rw-r--r-- | layouts/partials/footer.html | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index a38931d..2f7f3e2 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -147,6 +147,9 @@ {{- /* InstantClick.js */}} {{- if (.Param "EnableInstantClick") }} {{- $instantclick := resources.Get "js/instantclick.js" }} +{{- if hugo.IsProduction }} + {{- $instantclick = minify $instantclick }} +{{- end }} <script src="{{ $instantclick.RelPermalink }}" data-no-instant {{- if site.Params.assets.disableFingerprinting }}integrity="{{ $instantclick.Data.Integrity }}"{{- end }} ></script> |
