diff --git a/config.toml b/config.toml index 0b27ddd..83193ec 100644 --- a/config.toml +++ b/config.toml @@ -28,7 +28,6 @@ summaryLength = 30 weight = 2 [params] - google_analytics_id="" homepage_button_link = '/docs' homepage_button_text = 'Read The Docs' homepage_intro = 'YAMS is a basic but powerful media server, easy to install in a bash script' diff --git a/content/docs/_index.md b/content/docs/_index.md deleted file mode 100644 index 446a135..0000000 --- a/content/docs/_index.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -title: 'Overview' -date: 2018-11-28T15:14:39+10:00 -weight: 1 ---- - -## Whisper Theme - -Whisper is a minimal documentation theme for Hugo. The design and functionality is intentionally minimal. We’re aiming for a similar feel to a Github readme. diff --git a/layouts/partials/sub-footer.html b/layouts/partials/sub-footer.html new file mode 100644 index 0000000..8d2d53c --- /dev/null +++ b/layouts/partials/sub-footer.html @@ -0,0 +1,13 @@ + diff --git a/themes/hugo-whisper-theme/layouts/_default/baseof.html b/themes/hugo-whisper-theme/layouts/_default/baseof.html index 79eede4..650a098 100644 --- a/themes/hugo-whisper-theme/layouts/_default/baseof.html +++ b/themes/hugo-whisper-theme/layouts/_default/baseof.html @@ -66,8 +66,6 @@ {{ end }} - {{ partial "google-analytics.html" . }} - diff --git a/themes/hugo-whisper-theme/layouts/partials/google-analytics.html b/themes/hugo-whisper-theme/layouts/partials/google-analytics.html deleted file mode 100644 index 63c84ab..0000000 --- a/themes/hugo-whisper-theme/layouts/partials/google-analytics.html +++ /dev/null @@ -1,26 +0,0 @@ -{{- if .Site.IsServer -}} - -{{ else }} - {{ $gid := (getenv "HUGO_GOOGLE_ANALYTICS_ID") }} - {{ if $gid }} - - - - {{ else }} - {{ if .Site.Params.google_analytics_id }} - - - - {{ end }} - {{ end}} -{{ end }} \ No newline at end of file diff --git a/themes/hugo-whisper-theme/theme.toml b/themes/hugo-whisper-theme/theme.toml index 2fa64d5..8f6c5c1 100644 --- a/themes/hugo-whisper-theme/theme.toml +++ b/themes/hugo-whisper-theme/theme.toml @@ -7,7 +7,7 @@ homepage = "https://github.com/zerostatic/hugo-whisper-theme" demosite = "https://hugo-whisper.netlify.app" tags = ["docs","responsive","minimal","clean","bootstrap","zerostatic"] -features = ["docs","bootstrap","scss","netlify","google analytics"] +features = ["docs","bootstrap","scss"] [author] name = "Robert Austin"