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

github.com/thingsym/hugo-theme-techdoc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthingsym <thingsym@gmail.com>2019-12-07 12:58:13 +0300
committerthingsym <thingsym@gmail.com>2019-12-07 12:58:13 +0300
commit5d5846ed5eaa001440c0987c12121e119f79cca6 (patch)
treed0c95fb3c328b7d4c2d94f2f4c15ad6db12c1ad3
parent80f46f6c867adf932e75fad4bf224e7313b29f6f (diff)
fix: remove line break with Go tag
-rw-r--r--layouts/partials/custom-css.html4
-rw-r--r--layouts/partials/meta/google-analytics-async.html4
-rw-r--r--layouts/partials/meta/google-site-verification.html4
-rw-r--r--layouts/partials/meta/tag-manager.html4
4 files changed, 8 insertions, 8 deletions
diff --git a/layouts/partials/custom-css.html b/layouts/partials/custom-css.html
index 1917867..849cc3d 100644
--- a/layouts/partials/custom-css.html
+++ b/layouts/partials/custom-css.html
@@ -1,6 +1,6 @@
<style>
:root {
- {{ with .Site.Params.custom_font_color }}--custom-font-color: {{ . }};{{ end }}
- {{ with .Site.Params.custom_background_color }}--custom-background-color: {{ . }};{{ end }}
+ {{- with .Site.Params.custom_font_color }}--custom-font-color: {{ . }};{{ end -}}
+ {{- with .Site.Params.custom_background_color }}--custom-background-color: {{ . }};{{ end -}}
}
</style>
diff --git a/layouts/partials/meta/google-analytics-async.html b/layouts/partials/meta/google-analytics-async.html
index 144d54e..79d93af 100644
--- a/layouts/partials/meta/google-analytics-async.html
+++ b/layouts/partials/meta/google-analytics-async.html
@@ -1,6 +1,6 @@
-{{ if .Site.IsServer }}
+{{- if .Site.IsServer -}}
<!-- only production, not generate Google Analytics with Hugo’s built-in server -->
-{{ else }}
+{{- else -}}
{{- with .Site.Params.google_analytics_id -}}
<!-- BEGIN: Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id={{ . }}"></script>
diff --git a/layouts/partials/meta/google-site-verification.html b/layouts/partials/meta/google-site-verification.html
index 68bfaf9..5f5d0e5 100644
--- a/layouts/partials/meta/google-site-verification.html
+++ b/layouts/partials/meta/google-site-verification.html
@@ -1,6 +1,6 @@
-{{ if .Site.IsServer }}
+{{- if .Site.IsServer -}}
<!-- only production, not generate google-site-verification with Hugo’s built-in server -->
-{{ else }}
+{{- else -}}
{{- if .IsHome -}}
{{- with .Site.Params.google_site_verification -}}
<meta name="google-site-verification" content="{{ . }}">
diff --git a/layouts/partials/meta/tag-manager.html b/layouts/partials/meta/tag-manager.html
index 82a27fb..d527032 100644
--- a/layouts/partials/meta/tag-manager.html
+++ b/layouts/partials/meta/tag-manager.html
@@ -1,6 +1,6 @@
-{{ if .Site.IsServer }}
+{{- if .Site.IsServer -}}
<!-- only production, not generate Tag Manager with Hugo’s built-in server -->
-{{ else }}
+{{- else -}}
{{- with .Site.Params.tag_manager_container_id -}}
<!-- BEGIN: Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':