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:20:04 +0300
committerTobias Sachs <tobias@tobiassachs.de>2017-04-27 22:20:04 +0300
commit192fcb2a58bca847c511b4cfbe882417f6d97cfc (patch)
tree5f7d3b994ab593b6dba8587accc62f4adee194f5
parent23217ef7b57774cb5b7dd97fdb4d625af6238924 (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>