Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wlh320/hugo-theme-hulga.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/pwa.html')
-rw-r--r--layouts/partials/pwa.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/layouts/partials/pwa.html b/layouts/partials/pwa.html
new file mode 100644
index 0000000..0884273
--- /dev/null
+++ b/layouts/partials/pwa.html
@@ -0,0 +1,3 @@
+{{ $pwafile := resources.Get "js/pwa.js" }}
+{{ $pwa := $pwafile | resources.ExecuteAsTemplate "js/pwa.js" . | resources.Minify }}
+<script src="{{ $pwa.Permalink | relURL }}"></script>