diff options
author | Durand D'souza <durand1@gmail.com> | 2016-10-18 01:27:18 +0300 |
---|---|---|
committer | Durand D'souza <durand1@gmail.com> | 2016-10-18 01:27:18 +0300 |
commit | fd3ce438cf769abdce0f306c4c0e0bd270f3e739 (patch) | |
tree | 1a52b39311f1f908f18a753aacc2ceff0eac951c | |
parent | b434dc17d014f0f3b14cf4b7610ba6451b68dddf (diff) |
Removed ipfs references from branch merge
-rw-r--r-- | exampleSite/config.toml | 4 | ||||
-rw-r--r-- | layouts/partials/scripts.html | 1 | ||||
-rw-r--r-- | static/js/ipfs.js | 8 |
3 files changed, 1 insertions, 12 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 5aad884..e34a56d 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -7,9 +7,7 @@ PygmentsCodeFences = true Paginate = 3 disqusShortname = "hpstrhugo" relativeurls = true -[permalinks] - posts = "/:section/:slug/" - another = "/:section/:slug/" + [params] subtitle = "An elegant, responsive theme for Hugo" [params.author] diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html index d6557ed..68e2a89 100644 --- a/layouts/partials/scripts.html +++ b/layouts/partials/scripts.html @@ -1,5 +1,4 @@ <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <script>window.jQuery || document.write('<script src="{{ .Site.BaseURL }}/js/vendor/jquery-1.9.1.min.js"><\/script>')</script> <script src="{{ .Site.BaseURL }}/assets/js/scripts.min.js"></script> -<script src="{{ .Site.BaseURL }}/js/ipfs.js"></script> {{ template "_internal/google_analytics.html" . }} diff --git a/static/js/ipfs.js b/static/js/ipfs.js deleted file mode 100644 index 45d1947..0000000 --- a/static/js/ipfs.js +++ /dev/null @@ -1,8 +0,0 @@ -function use_ipfs(image) { - if (image.naturalWidth == 0 && image.src.search("/ipfs/") != -1) { - image.src = image.src.split('#')[1]; - } -} - -let image = document.getElementsByClassName("entry-image")[0].getElementsByTagName('img')[0]; -window.onload(use_ipfs(image)); |