From d3e18621c10be4879a5d5c9a9b480e7b0ebe4812 Mon Sep 17 00:00:00 2001 From: Alexander Schwartz Date: Wed, 31 Mar 2021 17:34:29 +0200 Subject: [PATCH] Use relative URLs for better preview when testing locally Signed-off-by: Alexander Schwartz --- layouts/partials/footer.html | 6 +++--- layouts/partials/head.html | 10 +++++----- layouts/partials/nav_toggle.html | 2 +- layouts/partials/navbar.html | 6 +++--- layouts/shortcodes/eclipsefdn_adopters.html | 4 ++-- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 9ceeb229..cd2c3565 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -75,14 +75,14 @@

{{ i18n "footer-other-section-text" }}

{{- with .Site.Params.js | default "https://www.eclipse.org/eclipse.org-common/themes/solstice/public/javascript/main.min.js"}} - + {{ end }} {{ if isset .Site.Params "hugo_js" }} {{- with .Site.Params.hugo_js }} - + {{ end }} {{ else }} - + {{ end }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index c8258d75..99726281 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -33,12 +33,12 @@ {{- end }} {{- with .Params.page_favicon | default .Site.Params.favicon | default "https://www.eclipse.org/favicon.ico"}} - + {{- end -}} {{- with .Params.share_img | default .Params.image | default .Site.Params.share_img | default .Site.Params.logo }} - - + + {{- end }} {{- with .Site.Author.twitter }} @@ -63,8 +63,8 @@ {{ end }} {{ if ne .Page.Params.disable_css "true" }} {{- with .Site.Params.styles | default "https://eclipse.org/eclipse.org-common/themes/solstice/public/stylesheets/quicksilver.min.css" }} - + {{- end }} {{- end }} {{- partial "google_tag_manager.html" . }} -{{- partial "head_variables.html" . }} \ No newline at end of file +{{- partial "head_variables.html" . }} diff --git a/layouts/partials/nav_toggle.html b/layouts/partials/nav_toggle.html index d5f4e0a8..22af2ca1 100644 --- a/layouts/partials/nav_toggle.html +++ b/layouts/partials/nav_toggle.html @@ -36,7 +36,7 @@ {{ end }} - {{ $currentPageLogoTitle }} + {{ $currentPageLogoTitle }} {{ end }} diff --git a/layouts/partials/navbar.html b/layouts/partials/navbar.html index baa4d183..cde6949c 100644 --- a/layouts/partials/navbar.html +++ b/layouts/partials/navbar.html @@ -59,7 +59,7 @@ {{ end }} - + {{ end }} @@ -76,7 +76,7 @@ {{ $normalized_cta_url = printf "%s/" $normalized_cta_url }} {{ end }} - {{ $abs_cfa := printf "%s" ($normalized_cta_url | absURL) }} + {{ $abs_cfa := printf "%s" ($normalized_cta_url | relURL) }} {{ $is_cfa_page := 0 }} {{ if or (eq $normalized_cta_url .Permalink) (eq $abs_cfa .Permalink) }} {{ $is_cfa_page = 1 }} @@ -97,4 +97,4 @@ - \ No newline at end of file + diff --git a/layouts/shortcodes/eclipsefdn_adopters.html b/layouts/shortcodes/eclipsefdn_adopters.html index 1339ed5b..76a3b365 100644 --- a/layouts/shortcodes/eclipsefdn_adopters.html +++ b/layouts/shortcodes/eclipsefdn_adopters.html @@ -14,7 +14,7 @@ {{ $ul_classes := .Get "ul_classes" | default "text-center list-inline" }}
- + \ No newline at end of file +