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

github.com/saey55/hugo-elate-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Sachs <tobias@tobiassachs.de>2017-04-27 22:34:14 +0300
committerTobias Sachs <tobias@tobiassachs.de>2017-04-27 22:34:14 +0300
commit5007be7f98c84e2651116154721852906f01b489 (patch)
treee0832accd837de84063ca741e867fcdadb068a7f
parentad6da21dde86b7970d68cdf4d7a4a0ee45cc681b (diff)
Remove the Map JS if the map is disabled.
-rwxr-xr-xlayouts/partials/js.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/layouts/partials/js.html b/layouts/partials/js.html
index 28b15c4..11a6392 100755
--- a/layouts/partials/js.html
+++ b/layouts/partials/js.html
@@ -14,6 +14,9 @@
<script src="js/jquery.magnific-popup.min.js"></script>
<script src="js/magnific-popup-options.js"></script>
<!-- Google Map -->
+ {{ if .Site.Params.contact.map }}
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCefOgb1ZWqYtj7raVSmN4PL2WkTrc-KyA&sensor=false"></script>
<script src="js/google_map.js"></script>
- <script src="js/main.js"></script> \ No newline at end of file
+ {{ end }}
+ <!-- Main JavaScript -->
+ <script src="js/main.js"></script>