From 20b45249abd740caa0850c49a1698e8b56b7b15d Mon Sep 17 00:00:00 2001 From: Sydney Bizkut Date: Thu, 13 Feb 2020 11:33:20 -0800 Subject: [PATCH] add ipfs detection script --- layouts/partials/js.html | 26 ++++++++++++++++++++++++++ static/ipfs.js | 2 ++ 2 files changed, 28 insertions(+) create mode 100644 layouts/partials/js.html create mode 100644 static/ipfs.js diff --git a/layouts/partials/js.html b/layouts/partials/js.html new file mode 100644 index 0000000..1ac33a6 --- /dev/null +++ b/layouts/partials/js.html @@ -0,0 +1,26 @@ + + + + + + + + + + + +{{ if isset .Site.Params "googleAnalytics" }} + + + + +{{ end }} diff --git a/static/ipfs.js b/static/ipfs.js new file mode 100644 index 0000000..0aa7aed --- /dev/null +++ b/static/ipfs.js @@ -0,0 +1,2 @@ +if (window.ipfs !== undefined) + window.location.href = "ipns://" + window.location.host; \ No newline at end of file