From b30b02d0eee819448cc578f8c8c922fc9ab19700 Mon Sep 17 00:00:00 2001 From: Christopher Guindon Date: Mon, 7 Jun 2021 14:40:11 -0400 Subject: [PATCH 1/2] add flexibility to footer Signed-off-by: Christopher Guindon --- layouts/_default/baseof.html | 3 +- layouts/partials/footer.html | 105 +----------------- layouts/partials/footer_js.html | 45 ++++++++ .../footer_links/footer-copyright.html | 8 ++ .../footer-eclipse-foundation.html | 13 +++ .../partials/footer_links/footer-legal.html | 10 ++ .../partials/footer_links/footer-other.html | 11 ++ .../footer_links/footer-useful-links.html | 11 ++ layouts/partials/footer_links/links.html | 6 + layouts/partials/footer_links/prefix.html | 0 layouts/partials/footer_links/suffix.html | 0 11 files changed, 112 insertions(+), 100 deletions(-) create mode 100644 layouts/partials/footer_js.html create mode 100644 layouts/partials/footer_links/footer-copyright.html create mode 100644 layouts/partials/footer_links/footer-eclipse-foundation.html create mode 100644 layouts/partials/footer_links/footer-legal.html create mode 100644 layouts/partials/footer_links/footer-other.html create mode 100644 layouts/partials/footer_links/footer-useful-links.html create mode 100644 layouts/partials/footer_links/links.html create mode 100644 layouts/partials/footer_links/prefix.html create mode 100644 layouts/partials/footer_links/suffix.html diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index b567a255..5f70e0b4 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,4 +1,4 @@ - -{{- 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 }} - - -{{ range $key, $value := (.Page.Scratch.Get "mustache-templates") }} - -{{ end }} - - + \ No newline at end of file diff --git a/layouts/partials/footer_js.html b/layouts/partials/footer_js.html new file mode 100644 index 00000000..92b874fb --- /dev/null +++ b/layouts/partials/footer_js.html @@ -0,0 +1,45 @@ + + +{{- 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 }} + + +{{ range $key, $value := (.Page.Scratch.Get "mustache-templates") }} + +{{ end }} + + + \ No newline at end of file diff --git a/layouts/partials/footer_links/footer-copyright.html b/layouts/partials/footer_links/footer-copyright.html new file mode 100644 index 00000000..94cc4217 --- /dev/null +++ b/layouts/partials/footer_links/footer-copyright.html @@ -0,0 +1,8 @@ +
+
+ + {{ partial "socials.html" . }} +
+
\ No newline at end of file diff --git a/layouts/partials/footer_links/footer-eclipse-foundation.html b/layouts/partials/footer_links/footer-eclipse-foundation.html new file mode 100644 index 00000000..8deb6872 --- /dev/null +++ b/layouts/partials/footer_links/footer-eclipse-foundation.html @@ -0,0 +1,13 @@ + \ No newline at end of file diff --git a/layouts/partials/footer_links/footer-legal.html b/layouts/partials/footer_links/footer-legal.html new file mode 100644 index 00000000..369b8c67 --- /dev/null +++ b/layouts/partials/footer_links/footer-legal.html @@ -0,0 +1,10 @@ + \ No newline at end of file diff --git a/layouts/partials/footer_links/footer-other.html b/layouts/partials/footer_links/footer-other.html new file mode 100644 index 00000000..205a3989 --- /dev/null +++ b/layouts/partials/footer_links/footer-other.html @@ -0,0 +1,11 @@ + \ No newline at end of file diff --git a/layouts/partials/footer_links/footer-useful-links.html b/layouts/partials/footer_links/footer-useful-links.html new file mode 100644 index 00000000..45f0bc26 --- /dev/null +++ b/layouts/partials/footer_links/footer-useful-links.html @@ -0,0 +1,11 @@ + \ No newline at end of file diff --git a/layouts/partials/footer_links/links.html b/layouts/partials/footer_links/links.html new file mode 100644 index 00000000..971af468 --- /dev/null +++ b/layouts/partials/footer_links/links.html @@ -0,0 +1,6 @@ +{{ partial "footer_links/footer-eclipse-foundation.html" . }} +{{ partial "footer_links/footer-legal.html" . }} +{{ partial "footer_links/footer-useful-links.html" . }} +{{ partial "footer_links/footer-other.html" . }} +{{ partial "footer_links/footer-copyright.html" . }} + diff --git a/layouts/partials/footer_links/prefix.html b/layouts/partials/footer_links/prefix.html new file mode 100644 index 00000000..e69de29b diff --git a/layouts/partials/footer_links/suffix.html b/layouts/partials/footer_links/suffix.html new file mode 100644 index 00000000..e69de29b From 53742aaa1c66fb8ac6e5ee63fefe66e7838e432e Mon Sep 17 00:00:00 2001 From: Christopher Guindon Date: Mon, 7 Jun 2021 14:48:55 -0400 Subject: [PATCH 2/2] add class overrides for each section Signed-off-by: Christopher Guindon --- layouts/partials/footer_links/footer-eclipse-foundation.html | 2 +- layouts/partials/footer_links/footer-legal.html | 2 +- layouts/partials/footer_links/footer-other.html | 2 +- layouts/partials/footer_links/footer-useful-links.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/layouts/partials/footer_links/footer-eclipse-foundation.html b/layouts/partials/footer_links/footer-eclipse-foundation.html index 8deb6872..d7a5bacc 100644 --- a/layouts/partials/footer_links/footer-eclipse-foundation.html +++ b/layouts/partials/footer_links/footer-eclipse-foundation.html @@ -1,4 +1,4 @@ -