From 336ce723008ce16145a12f910d1b9b66409a0e1c Mon Sep 17 00:00:00 2001
From: edisonxiang
Date: Wed, 11 Sep 2019 12:38:28 +0800
Subject: [PATCH] remove googlemap
---
themes/project/exampleSite/config.toml | 2 +-
themes/project/layouts/partials/head.html | 2 -
themes/project/layouts/partials/nav.html | 133 ++++++++++---------
themes/project/layouts/partials/scripts.html | 7 -
4 files changed, 70 insertions(+), 74 deletions(-)
diff --git a/themes/project/exampleSite/config.toml b/themes/project/exampleSite/config.toml
index 6e94f29..ad71c2b 100644
--- a/themes/project/exampleSite/config.toml
+++ b/themes/project/exampleSite/config.toml
@@ -78,7 +78,7 @@ paginate = 10
twitterImage = "img/twitter-default.png"
# Google Maps API key (if not set will default to not passing a key.)
- googleMapsApiKey = "AIzaSyCFhtWLJcE30xOAjcbSFi-0fnoVmQZPb1Y"
+ # googleMapsApiKey = "AIzaSyCFhtWLJcE30xOAjcbSFi-0fnoVmQZPb1Y"
# Style options: default (light-blue), blue, green, marsala, pink, red, turquoise, violet
style = "default"
diff --git a/themes/project/layouts/partials/head.html b/themes/project/layouts/partials/head.html
index 8a9cb8d..e65a565 100644
--- a/themes/project/layouts/partials/head.html
+++ b/themes/project/layouts/partials/head.html
@@ -21,8 +21,6 @@
{{ .Hugo.Generator }}
-
-
diff --git a/themes/project/layouts/partials/nav.html b/themes/project/layouts/partials/nav.html
index 06f3f97..5283e56 100644
--- a/themes/project/layouts/partials/nav.html
+++ b/themes/project/layouts/partials/nav.html
@@ -31,87 +31,92 @@
{{ else }}
- {{ .Name }}
+
+ {{ .Name }}
+
{{ end }}
{{ end }}
{{ end }}
+
-
+
-
+
-
-
-
-
-
- {{ $current := . }}
- {{ range .Site.Menus.main }}
- {{ $topLevel := replace .URL "/" "" }}
- {{ $isChildren := false }}
- {{ range .Children }}
- {{ if eq .Identifier $current.Type }}
- {{ $isChildren = true }}
- {{ end }}
- {{ end }}
-
- {{ if .HasChildren }}
- {{ .Name }}
-
- {{ else }}
- {{ .Name }}
- {{ end }}
-
- {{ end }}
-
+
+
-
-
+
+
+
+
+
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/themes/project/layouts/partials/scripts.html b/themes/project/layouts/partials/scripts.html
index 6f1c163..801cc7a 100644
--- a/themes/project/layouts/partials/scripts.html
+++ b/themes/project/layouts/partials/scripts.html
@@ -10,13 +10,6 @@
-{{ if .Site.Params.googleMapsApiKey }}
-
-{{ else }}
-
-{{ end }}
-
-
--
GitLab