eclipsefdn-hugo-solstice-theme 0.0.186 → 0.0.188

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/exampleSite/config/_default/config.toml +6 -4
  2. package/exampleSite/config/_default/menus.en.toml +31 -12
  3. package/exampleSite/content/components/eclipsefdn_projects.md +1 -1
  4. package/exampleSite/content/components/eclipsefdn_projects_page.md +7 -2
  5. package/exampleSite/content/components/featured_story/featured-story-jumbotron.md +9 -0
  6. package/exampleSite/content/custom-jumbotron/_index.md +3 -2
  7. package/exampleSite/content/custom-jumbotron-end/_index.md +8 -0
  8. package/exampleSite/content/jumbotron_featured_story/_index.md +7 -0
  9. package/i18n/de.toml +3 -3
  10. package/i18n/en.toml +22 -13
  11. package/i18n/ru.toml +3 -3
  12. package/i18n/tr.toml +3 -3
  13. package/i18n/zh.toml +3 -3
  14. package/layouts/404.html +22 -28
  15. package/layouts/_default/baseof.html +1 -1
  16. package/layouts/partials/astro/footer.html +26 -0
  17. package/layouts/partials/astro/header.html +24 -0
  18. package/layouts/partials/astro/jumbotron.html +90 -0
  19. package/layouts/partials/astro/main_prefix.html +39 -0
  20. package/layouts/partials/astro/mega_menu.html +68 -0
  21. package/layouts/partials/astro/mobile_menu.html +63 -0
  22. package/layouts/partials/astro/nav.html +40 -0
  23. package/layouts/partials/astro/navbar.html +42 -0
  24. package/layouts/partials/astro/sidebar.html +70 -0
  25. package/layouts/partials/astro/socials.html +58 -0
  26. package/layouts/partials/astro/toolbar.html +77 -0
  27. package/layouts/partials/breadcrumbs.html +30 -18
  28. package/layouts/partials/featured_story.html +41 -11
  29. package/layouts/partials/footer.html +8 -17
  30. package/layouts/partials/footer_js.html +5 -0
  31. package/layouts/partials/footer_links/footer-copyright.html +4 -2
  32. package/layouts/partials/footer_links/footer-eclipse-foundation.html +31 -14
  33. package/layouts/partials/footer_links/footer-legal.html +28 -10
  34. package/layouts/partials/footer_links/footer-other.html +28 -11
  35. package/layouts/partials/footer_links/links.html +6 -3
  36. package/layouts/partials/footer_links/suffix.html +34 -0
  37. package/layouts/partials/header.html +8 -10
  38. package/layouts/partials/jumbotron.html +6 -42
  39. package/layouts/partials/main_prefix.html +6 -27
  40. package/layouts/partials/mega_menu.html +15 -0
  41. package/layouts/partials/mobile_menu.html +18 -0
  42. package/layouts/partials/nav.html +2 -55
  43. package/layouts/partials/navbar.html +6 -61
  44. package/layouts/partials/quicksilver/footer.html +26 -0
  45. package/layouts/partials/quicksilver/header.html +21 -0
  46. package/layouts/partials/quicksilver/jumbotron.html +54 -0
  47. package/layouts/partials/quicksilver/main_prefix.html +37 -0
  48. package/layouts/partials/quicksilver/nav.html +70 -0
  49. package/layouts/partials/quicksilver/navbar.html +74 -0
  50. package/layouts/partials/quicksilver/sidebar.html +45 -0
  51. package/layouts/partials/quicksilver/socials.html +29 -0
  52. package/layouts/partials/quicksilver/toolbar.html +39 -0
  53. package/layouts/partials/sidebar.html +9 -38
  54. package/layouts/partials/socials.html +15 -16
  55. package/layouts/partials/toolbar.html +7 -31
  56. package/layouts/shortcodes/eclipsefdn_projects.html +15 -5
  57. package/package.json +5 -2
  58. package/webpack.mix.js +16 -2
  59. /package/exampleSite/content/components/{featured_story.md → featured_story/_index.md} +0 -0
@@ -0,0 +1,68 @@
1
+ {{/*
2
+ Copyright (c) 2023 Eclipse Foundation, Inc.
3
+
4
+ This program and the accompanying materials are made available under the
5
+ terms of the Eclipse Public License v. 2.0 which is available at
6
+ http://www.eclipse.org/legal/epl-2.0.
7
+
8
+ Contributors:
9
+ Olivier Goulet <olivier.goulet@eclipse-foundation.org>
10
+
11
+ SPDX-License-Identifier: EPL-2.0
12
+ */}}
13
+
14
+ {{ $main_menu := .Page.Params.main_menu | default "main" }}
15
+
16
+ {{ $current_page := . }}
17
+ {{ $hide_ad := $.Site.Params.hide_ad | default true }}
18
+ {{ $header_ad_format := $.Site.Params.header_ad_format | default "ads_square" }}
19
+ {{ $megaMenu := .Site.Data.mega_menu }}
20
+
21
+ <div class="eclipsefdn-mega-menu">
22
+ {{ range (index .Site.Menus $main_menu) }}
23
+ {{ $menu_id := .Identifier | default (lower .Name) }}
24
+ {{ $menu_id = printf "%s-menu" $menu_id }}
25
+
26
+ <div class="mega-menu-submenu container hidden" data-menu-id="{{ $menu_id }}">
27
+ <div class="mega-menu-submenu-featured-story">
28
+
29
+ {{ with (index $megaMenu $menu_id).heading }}
30
+ <p class="mega-menu-submenu-featured-story-heading">{{ . }}</p>
31
+ {{ end }}
32
+
33
+ {{ with (index $megaMenu $menu_id).text }}
34
+ <p class="mega-menu-submenu-featured-story-text">{{ . }}</p>
35
+ {{ end }}
36
+
37
+ {{ with (index $megaMenu $menu_id).link }}
38
+ <a class="mega-menu-submenu-featured-story-btn btn btn-primary" href="{{ .url }}">{{ .text }}</a>
39
+ {{ end }}
40
+
41
+ </div>
42
+ <div class="mega-menu-submenu-links-section">
43
+ {{ range .Children }}
44
+ <div class="mega-menu-submenu-links">
45
+ <p class="menu-heading">{{ .Name }}</p>
46
+ <ul>
47
+ {{ range .Children }}
48
+ <li>
49
+ <a href="{{ .URL }}">{{ .Name }}</a>
50
+ </li>
51
+ {{ end }}
52
+ </ul>
53
+ </div>
54
+ {{ end }}
55
+ </div>
56
+ <div class="mega-menu-submenu-ad-wrapper">
57
+ {{ if eq $hide_ad false }}
58
+ <div
59
+ class="eclipsefdn-promo-content mega-menu-promo-content"
60
+ data-ad-format="ads_square"
61
+ data-ad-publish-to="eclipse_org_home"
62
+ >
63
+ </div>
64
+ {{ end }}
65
+ </div>
66
+ </div>
67
+ {{ end }}
68
+ </div>
@@ -0,0 +1,63 @@
1
+ {{/*
2
+ Copyright (c) 2023 Eclipse Foundation, Inc.
3
+
4
+ This program and the accompanying materials are made available under the
5
+ terms of the Eclipse Public License v. 2.0 which is available at
6
+ http://www.eclipse.org/legal/epl-2.0.
7
+
8
+ Contributors:
9
+ Olivier Goulet <olivier.goulet@eclipse-foundation.org>
10
+
11
+ SPDX-License-Identifier: EPL-2.0
12
+ */}}
13
+
14
+ {{ $main_menu := .Page.Params.main_menu | default "main" }}
15
+
16
+ {{ $current_page := . }}
17
+
18
+ <nav class="mobile-menu hidden" aria-expanded="false">
19
+ <ul>
20
+ {{ range (index .Site.Menus $main_menu) }}
21
+ {{ $menu_id := .Identifier | default (lower .Name) }}
22
+ {{ $target_menu := printf "%s-menu" $menu_id }}
23
+
24
+ <li class="mobile-menu-dropdown">
25
+ <a href="#" class="mobile-menu-item mobile-menu-dropdown-toggle" data-target="{{ $target_menu }}">
26
+ <span>{{ .Name }}</span>
27
+ <i class="fa fa-chevron-down" aria-hidden="true"></i>
28
+ </a>
29
+ <div class="mobile-menu-sub-menu-wrapper">
30
+ <ul class="mobile-menu-sub-menu hidden" id="{{ .Identifier }}-menu">
31
+ {{ range .Children }}
32
+ <li class="mobile-menu-dropdown">
33
+ <a
34
+ href="#"
35
+ data-target="{{ .Identifier }}-sub-menu"
36
+ class="mobile-menu-item mobile-menu-dropdown-toggle"
37
+ aria-expanded="false"
38
+ >
39
+ <span>{{ .Name }}</span>
40
+ <i class="fa fa-chevron-down" aria-hidden="true"></i>
41
+ </a>
42
+ <div class="mobile-menu-sub-menu-wrapper">
43
+ <ul
44
+ class="mobile-menu-sub-menu mobile-menu-links-menu hidden"
45
+ id="{{ .Identifier }}-sub-menu"
46
+ >
47
+ {{ range .Children }}
48
+ <li>
49
+ <a class="mobile-menu-item" href="{{ .URL }}">
50
+ {{ .Name }}
51
+ </a>
52
+ </li>
53
+ {{ end }}
54
+ </ul>
55
+ </div>
56
+ </li>
57
+ {{ end }}
58
+ </ul>
59
+ </div>
60
+ </li>
61
+ {{ end }}
62
+ </ul>
63
+ </nav>
@@ -0,0 +1,40 @@
1
+ {{/*
2
+ Copyright (c) 2023 Eclipse Foundation, Inc.
3
+
4
+ This program and the accompanying materials are made available under the
5
+ terms of the Eclipse Public License v. 2.0 which is available at
6
+ http://www.eclipse.org/legal/epl-2.0.
7
+
8
+ Contributors:
9
+ Olivier Goulet <olivier.goulet@eclipse-foundation.org>
10
+
11
+ SPDX-License-Identifier: EPL-2.0
12
+ */}}
13
+
14
+ {{ $main_menu := .Page.Params.main_menu | default "main" }}
15
+
16
+ {{ $current_page := . }}
17
+
18
+ <nav class="header-navbar-nav">
19
+ <ul class="header-navbar-nav-links">
20
+ {{ range (index .Site.Menus $main_menu) }}
21
+ {{ $menu_id := .Identifier | default (lower .Name) }}
22
+ {{ $target_menu := printf "%s-menu" $menu_id }}
23
+ {{ $active_class := "" }}
24
+ {{ if $current_page.IsMenuCurrent $main_menu . }}
25
+ {{ $active_class = "active" }}
26
+ {{ end }}
27
+
28
+ <li class="navbar-nav-links-item {{ $active_class }}">
29
+ <button
30
+ class="nav-link-js btn-link link-unstyled"
31
+ type="button"
32
+ aria-expanded="true"
33
+ data-menu-target="{{ $target_menu }}"
34
+ >
35
+ {{ .Name }}
36
+ </button>
37
+ </li>
38
+ {{ end }}
39
+ </ul>
40
+ </nav>
@@ -0,0 +1,42 @@
1
+ {{/*
2
+ Copyright (c) 2023 Eclipse Foundation, Inc.
3
+
4
+ This program and the accompanying materials are made available under the
5
+ terms of the Eclipse Public License v. 2.0 which is available at
6
+ http://www.eclipse.org/legal/epl-2.0.
7
+
8
+ Contributors:
9
+ Olivier Goulet <olivier.goulet@eclipse-foundation.org>
10
+
11
+ SPDX-License-Identifier: EPL-2.0
12
+ */}}
13
+
14
+ {{ $logo := .Site.Params.logo | default "https://www.eclipse.org/eclipse.org-common/themes/solstice/public/images/logo/eclipse-foundation-grey-orange.svg" }}
15
+ {{ $logo_width := .Site.Params.logo_width | default "150" }}
16
+ {{ $logo_title := .Site.Params.logo_title | default $.Site.Title }}
17
+
18
+ {{ $call_for_action_text := .Site.Params.call_for_action_text }}
19
+ {{ $call_for_action_url := .Site.Params.call_for_action_url }}
20
+ {{ $call_for_action_icon := .Site.Params.call_for_action_icon }}
21
+
22
+ <div class="header-navbar-wrapper">
23
+ <div class="container">
24
+ <div class="header-navbar">
25
+ <div class="header-navbar-brand">
26
+ <a class="logo-wrapper" href="/" title="{{ $logo_title }}">
27
+ <img src="{{ $logo }}" alt="" width="{{ $logo_width }}" />
28
+ </a>
29
+ </div>
30
+ {{ partial "nav.html" . }}
31
+ <div class="header-navbar-end">
32
+ <a class="header-navbar-end-download-btn btn btn-primary" href="{{ $call_for_action_url }}">
33
+ <i class="fa {{ $call_for_action_icon }}" aria-hidden="true"></i>
34
+ {{ $call_for_action_text }}
35
+ </a>
36
+ <button class="mobile-menu-btn" aria-label="Toggle mobile navigation menu" aria-expanded="false">
37
+ <i class="fa fa-bars fa-xl"></i>
38
+ </button>
39
+ </div>
40
+ </div>
41
+ </div>
42
+ </div>
@@ -0,0 +1,70 @@
1
+ {{/*
2
+ Copyright (c) 2023 Eclipse Foundation, Inc.
3
+ This program and the accompanying materials are made available under the
4
+ terms of the Eclipse Public License v. 2.0 which is available at
5
+ http://www.eclipse.org/legal/epl-2.0.
6
+
7
+ Contributors:
8
+ Olivier Goulet <olivier.goulet@eclipse-foundation.org>
9
+
10
+ SPDX-License-Identifier: EPL-2.0
11
+ */}}
12
+
13
+ {{ if isset .Site.Menus "sidebar" }}
14
+ {{ $current_page := . }}
15
+ {{ $current_section := "home" }}
16
+
17
+ {{ if $current_page.Section }}
18
+ {{ $current_section = $current_page.Section }}
19
+ {{ end }}
20
+
21
+ {{ range .Site.Menus.sidebar }}
22
+ {{ $parent_item := . }}
23
+ {{ if and (.HasChildren) (eq $current_section $parent_item.Identifier ) }}
24
+ <aside class="main-sidebar-default-margin" id="main-sidebar">
25
+ <ul class="ul-left-nav" id="leftnav" role="tablist" aria-multiselectable="true">
26
+ {{ range .Children }}
27
+ <li class="main-sidebar-item main-sidebar-item-indented">
28
+ {{ if .HasChildren }}
29
+ <li class="main-sidebar-item main-sidebar-item-indented">
30
+ <a
31
+ class="link-unstyled"
32
+ role="button"
33
+ data-toggle="collapse"
34
+ href="#{{ .Identifier }}"
35
+ aria-expanded="false"
36
+ aria-controls="{{ .Identifier }}"
37
+ >
38
+ <span>{{ .Name }}</span>
39
+ <i class="main-sidebar-item-icon fa fa-chevron-down" aria-hidden="true"></i>
40
+ </a>
41
+ <div class="collapse" id="{{ .Identifier }}">
42
+ <ul class="main-sidebar-item-submenu list-unstyled">
43
+ {{ range .Children }}
44
+ <li class="submenu-item">
45
+ {{ .Pre }}
46
+ <a class="link-unstyled" href="{{ .URL }}" target="_self">{{ .Name }}</a>
47
+ </li>
48
+ {{ end }}
49
+ </ul>
50
+ </div>
51
+ </li>
52
+ {{ else }}
53
+ <li class="main-sidebar-item main-sidebar-item-indented">
54
+ <a class="link-unstyled" href="{{ .URL }}">
55
+ <div>
56
+ <span class="main-sidebar-item-pre" aria-hidden="true">
57
+ {{ .Pre }}
58
+ </span>
59
+ {{ .Name }}
60
+ </div>
61
+ </a>
62
+ </li>
63
+ {{ end }}
64
+ </li>
65
+ {{ end }}
66
+ </ul>
67
+ </aside>
68
+ {{ end }}
69
+ {{end }}
70
+ {{ end }}
@@ -0,0 +1,58 @@
1
+ {{/*
2
+ Copyright (c) 2023 Eclipse Foundation, Inc.
3
+ This program and the accompanying materials are made available under the
4
+ terms of the Eclipse Public License v. 2.0 which is available at
5
+ http://www.eclipse.org/legal/epl-2.0.
6
+
7
+ Contributors:
8
+ Olivier Goulet <olivier.goulet@eclipse-foundation.org>
9
+
10
+ SPDX-License-Identifier: EPL-2.0
11
+ */}}
12
+
13
+ {{ $twitter_url := $.Site.Params.twitter_url | default "https://twitter.com/EclipseFdn" }}
14
+ {{ $facebook_url := $.Site.Params.facebook_url | default "https://www.facebook.com/eclipse.org" }}
15
+ {{ $youtube_url := $.Site.Params.youtube_url | default "https://www.youtube.com/user/EclipseFdn" }}
16
+ {{ $linkedin_url := $.Site.Params.linkedin_url | default "https://www.linkedin.com/company/eclipse-foundation" }}
17
+
18
+ <div class="footer-end-social">
19
+ <p class="footer-end-social-text">Follow Us:</p>
20
+ <ul class="footer-end-social-links list-inline">
21
+ <li>
22
+ <a class="link-unstyled" href="{{ $twitter_url }}" title="{{ i18n "footer-sr-twitter-text" }}">
23
+ <span class="fa fa-stack">
24
+ <i class="fa fa-circle fa-stack-2x" aria-hidden="true"></i>
25
+ <i class="fa fa-twitter fa-stack-1x fa-inverse" aria-hidden="true"></i>
26
+ <span class="sr-only">{{ i18n "footer-sr-twitter-text" }}</span>
27
+ </span>
28
+ </a>
29
+ </li>
30
+ <li>
31
+ <a class="link-unstyled" href="{{ $facebook_url }}" title="{{ i18n "footer-sr-facebook-text" }}">
32
+ <span class="fa fa-stack">
33
+ <i class="fa fa-circle fa-stack-2x" aria-hidden="true"></i>
34
+ <i class="fa fa-facebook fa-stack-1x fa-inverse" aria-hidden="true"></i>
35
+ <span class="sr-only">{{ i18n "footer-sr-facebook-text" }}</span>
36
+ </span>
37
+ </a>
38
+ </li>
39
+ <li>
40
+ <a class="link-unstyled" href="{{ $youtube_url }}" title="{{ i18n "footer-sr-youtube-text" }}">
41
+ <span class="fa fa-stack">
42
+ <i class="fa fa-circle fa-stack-2x" aria-hidden="true"></i>
43
+ <i class="fa fa-youtube-play fa-stack-1x fa-inverse" aria-hidden="true"></i>
44
+ <span class="sr-only">{{ i18n "footer-sr-youtube-text" }}</span>
45
+ </span>
46
+ </a>
47
+ </li>
48
+ <li>
49
+ <a class="link-unstyled" href="{{ $linkedin_url }}" title="{{ i18n "footer-sr-linkedin-text" }}">
50
+ <span class="fa fa-stack">
51
+ <i class="fa fa-circle fa-stack-2x" aria-hidden="true"></i>
52
+ <i class="fa fa-linkedin fa-stack-1x fa-inverse" aria-hidden="true"></i>
53
+ <span class="sr-only">{{ i18n "footer-sr-linkedin-text" }}</span>
54
+ </span>
55
+ </a>
56
+ </li>
57
+ </ul>
58
+ </div>
@@ -0,0 +1,77 @@
1
+ {{/*
2
+ Copyright (c) 2023 Eclipse Foundation, Inc.
3
+
4
+ This program and the accompanying materials are made available under the
5
+ terms of the Eclipse Public License v. 2.0 which is available at
6
+ http://www.eclipse.org/legal/epl-2.0.
7
+
8
+ Contributors:
9
+ Olivier Goulet <olivier.goulet@eclipse-foundation.org>
10
+
11
+ SPDX-License-Identifier: EPL-2.0
12
+ */}}
13
+
14
+ <div class="header-toolbar">
15
+ <div class="container">
16
+ <div class="header-toolbar-row">
17
+ <div class="toolbar-btn toolbar-search-btn dropdown">
18
+ <button
19
+ class="dropdown-toggle"
20
+ id="toolbar-search"
21
+ type="button"
22
+ data-toggle="dropdown"
23
+ tabindex="0"
24
+ aria-label="Search"
25
+ >
26
+ <i class="fa fa-search fa-lg" aria-role="none"></i>
27
+ </button>
28
+ <div
29
+ class="toolbar-search-bar-wrapper dropdown-menu dropdown-menu-right"
30
+ aria-labelledby="toolbar-search"
31
+ >
32
+ <form action="https://www.eclipse.org/home/search" method="get">
33
+ <div class="search-bar">
34
+ <input class="search-bar-input" name="q" placeholder="Search" />
35
+ <button>
36
+ <i class="fa fa-search" type="submit"></i>
37
+ </button>
38
+ </div>
39
+ </form>
40
+ </div>
41
+ </div>
42
+ <div class="toolbar-btn toolbar-user-menu-btn dropdown">
43
+ <button
44
+ class="dropdown-toggle"
45
+ id="toolbar-user-menu"
46
+ type="button"
47
+ data-toggle="dropdown"
48
+ tabindex="0"
49
+ aria-label="User Menu"
50
+ >
51
+ <i class="fa fa-user fa-lg"></i>
52
+ </button>
53
+ <ul class="toolbar-user-menu dropdown-menu dropdown-menu-right text-center"
54
+ aria-labelledby="toolbar-user-menu">
55
+ <li>
56
+ <a href="https://accounts.eclipse.org/user">
57
+ <i class="fa fa-user"></i>
58
+ View My Account
59
+ </a>
60
+ </li>
61
+ <li>
62
+ <a href="https://accounts.eclipse.org/user/edit">
63
+ <i class="fa fa-edit"></i>
64
+ Edit My Account
65
+ </a>
66
+ </li>
67
+ <li>
68
+ <a class="toolbar-manage-cookies">
69
+ <i class="fa fa-wrench"></i>
70
+ Manage Cookies
71
+ </a>
72
+ </li>
73
+ </ul>
74
+ </div>
75
+ </div>
76
+ </div>
77
+ </div>
@@ -1,33 +1,45 @@
1
- <!--
2
- Copyright (c) 2018 Eclipse Foundation, Inc.
3
-
1
+ {{/*
2
+ Copyright (c) 2018, 2023 Eclipse Foundation, Inc.
4
3
  This program and the accompanying materials are made available under the
5
4
  terms of the Eclipse Public License v. 2.0 which is available at
6
5
  http://www.eclipse.org/legal/epl-2.0.
7
6
 
8
7
  Contributors:
9
8
  Christopher Guindon <chris.guindon@eclipse-foundation.org>
9
+ Olivier Goulet <olivier.goulet@eclipse-foundation.org>
10
10
 
11
11
  SPDX-License-Identifier: EPL-2.0
12
- -->
13
- <section class="default-breadcrumbs hidden-print" id="breadcrumb">
14
- <div class="container">
12
+ */}}
13
+
14
+ {{ $breadcrumb_container := "" }}
15
+
16
+ {{ if ne $.Site.Params.layout_style "astro" }}
17
+ {{ $breadcrumb_container = "container" }}
18
+ {{ end }}
19
+
20
+ {{ if and (eq $.Site.Params.layout_style "astro") (strings.Contains .Params.container "container-fluid") }}
21
+ {{ $breadcrumb_container = "container" }}
22
+ {{ end }}
23
+
24
+ <div class="default-breadcrumbs hidden-print" id="breadcrumb">
25
+ <div class="{{ $breadcrumb_container }}">
15
26
  <div class="row">
16
27
  <div class="col-sm-24">
17
28
  <ol aria-label="Breadcrumb" class="breadcrumb">
18
29
  {{ template "breadcrumbnav" (dict "p1" . "p2" .) }}
19
- </ol>
20
- {{ define "breadcrumbnav" }}
21
- {{ if .p1.Parent }}
22
- {{ template "breadcrumbnav" (dict "p1" .p1.Parent "p2" .p2 ) }}
23
- {{ else if not .p1.IsHome }}
24
- {{ template "breadcrumbnav" (dict "p1" .p1.Site.Home "p2" .p2 ) }}
30
+ </ol>
31
+ {{ define "breadcrumbnav" }}
32
+ {{ if .p1.Parent }}
33
+ {{ template "breadcrumbnav" (dict "p1" .p1.Parent "p2" .p2 ) }}
34
+ {{ else if not .p1.IsHome }}
35
+ {{ template "breadcrumbnav" (dict "p1" .p1.Site.Home "p2" .p2 ) }}
36
+ {{ end }}
37
+ <li {{ if eq .p1 .p2 }} class="active" aria-current="page"{{ end }}>
38
+ <a href="{{ .p1.Permalink }}">{{ if eq .Page.Params.format_title false }}{{ .p1.Title | safeHTML }}{{ else }}{{ .p1.Title | safeHTML | title }}{{ end }}</a>
39
+ </li>
25
40
  {{ end }}
26
- <li{{ if eq .p1 .p2 }} class="active" aria-current="page"{{ end }}>
27
- <a href="{{ .p1.Permalink }}">{{ if eq .Page.Params.format_title false }}{{ .p1.Title | safeHTML }}{{ else }}{{ .p1.Title | safeHTML | title }}{{ end }}</a>
28
- </li>
29
- {{ end }}
30
- </div>
41
+ </div>
31
42
  </div>
32
43
  </div>
33
- </section>
44
+ </div>
45
+
@@ -1,15 +1,45 @@
1
- {{ if eq .Page.Params.show_featured_story true }}
2
- <div class="eclipsefdn-featured-story featured-story" id="featured-story" data-publish-target="{{ .Page.Params.featured_content_publish_target | default .Site.Params.featured_content_publish_target | default "eclipse_org"}}">
3
- <div class="container">
4
- <div class="row">
5
- <div class="col-sm-12 col-sm-offset-2 col-md-16 col-md-offset-0 featured-story-block featured-story-block-content match-height-item-by-row featured-container">
6
- </div>
7
- <div class="col-sm-9 col-md-8 featured-side featured-story-block match-height-item-by-row">
8
- <div class="featured-side-content text-center">
9
- {{ .Site.Data.featuredstory.defaultRight | safeHTML }}
1
+ {{/*
2
+ Copyright (c) 2023 Eclipse Foundation, Inc.
3
+
4
+ This program and the accompanying materials are made available under the
5
+ terms of the Eclipse Public License v. 2.0 which is available at
6
+ http://www.eclipse.org/legal/epl-2.0.
7
+
8
+ Contributors:
9
+ Olivier Goulet <olivier.goulet@eclipse-foundation.org>
10
+
11
+ SPDX-License-Identifier: EPL-2.0
12
+ */}}
13
+
14
+ {{ $show_featured_story := .Page.Params.show_featured_story }}
15
+ {{ $layout_style := $.Site.Params.layout_style | default "quicksilver" }}
16
+
17
+ {{/*
18
+ The `$has_jumbotron` scratch variable is set in the `jumbotron.html` partial.
19
+ */}}
20
+ {{ $has_jumbotron := .Scratch.Get "has_jumbotron" }}
21
+
22
+ {{/*
23
+ Aside from Quicksilver, featured stories can appear in the jumbotron or in
24
+ the main content area. If no jumbotron was found on the page, we display this
25
+ partial's content.
26
+ */}}
27
+
28
+ {{ if $show_featured_story }}
29
+ {{ if or (eq $layout_style "quicksilver") (not $has_jumbotron) }}
30
+ <div class="eclipsefdn-featured-story featured-story" id="featured-story" data-publish-target="{{ .Page.Params.featured_content_publish_target | default .Site.Params.featured_content_publish_target | default "eclipse_org"}}">
31
+ <div class="container">
32
+ <div class="row">
33
+ <div class="col-sm-12 col-sm-offset-2 col-md-16 col-md-offset-0 featured-story-block featured-story-block-content match-height-item-by-row featured-container">
34
+ </div>
35
+ <div class="col-sm-9 col-md-8 featured-side featured-story-block match-height-item-by-row">
36
+ <div class="featured-side-content text-center">
37
+ {{ .Site.Data.featuredstory.defaultRight | safeHTML }}
38
+ </div>
10
39
  </div>
11
40
  </div>
12
41
  </div>
13
42
  </div>
14
- </div>
15
- {{ end }}
43
+ {{ end }}
44
+ {{ end }}
45
+
@@ -1,25 +1,16 @@
1
- <!--
2
- Copyright (c) 2018 Eclipse Foundation, Inc.
3
-
1
+ {{/*
2
+ Copyright (c) 2018, 2023 Eclipse Foundation, Inc.
4
3
  This program and the accompanying materials are made available under the
5
4
  terms of the Eclipse Public License v. 2.0 which is available at
6
5
  http://www.eclipse.org/legal/epl-2.0.
7
6
 
8
7
  Contributors:
9
8
  Christopher Guindon <chris.guindon@eclipse-foundation.org>
9
+ Olivier Goulet <olivier.goulet@eclipse-foundation.org>
10
10
 
11
11
  SPDX-License-Identifier: EPL-2.0
12
- -->
13
- <p id="back-to-top">
14
- <a class="visible-xs" href="#top">{{ i18n "navigation-back-to-top" }}</a>
15
- </p>
16
- <footer id="{{- .Params.footer_id | default .Site.Params.footer_id | default "solstice-footer"}}" class="{{- .Params.footer_class | default .Site.Params.footer_class | default ""}}">
17
- <div class="{{- .Params.footer_container_class | default .Site.Params.footer_container_class | default "container"}}">
18
- <div class="row">
19
- {{ partial "footer_links/prefix.html" . }}
20
- {{ partial "footer_links/links.html" . }}
21
- {{ partial "footer_links/suffix.html" . }}
22
- <a href="#" class="scrollup">{{ i18n "navigation-back-to-top" }}</a>
23
- </div>
24
- </div>
25
- </footer>
12
+ */}}
13
+
14
+ {{ $layout_style := $.Site.Params.layout_style | default "quicksilver" }}
15
+
16
+ {{ partial (printf "%s/footer.html" $layout_style) . }}
@@ -8,6 +8,11 @@
8
8
  <script src="{{ . | relURL }}"></script>
9
9
  {{ end }}
10
10
 
11
+ <!-- Render ads if enabled -->
12
+ {{ if eq .Site.Params.hide_ad false }}
13
+ <script src="{{ "js/eclipsefdn.promotion.js" | relURL }}?v={{ now.Unix }}"></script>
14
+ {{ end }}
15
+
11
16
  <!-- Read in mustache templates registered in page scratch -->
12
17
  {{ range $key, $value := (.Page.Scratch.Get "mustache-templates") }}
13
18
  <script id="{{ $key }}" type="text/html">
@@ -3,6 +3,8 @@
3
3
  <div id="copyright" class="col-md-16">
4
4
  <p id="copyright-text">{{ i18n "footer-copyright-text" | safeHTML}}</p>
5
5
  </div>
6
- {{ partial "socials.html" . }}
6
+ {{ if eq .Site.Params.layout_style "quicksilver" }}
7
+ {{ partial "socials.html" . }}
8
+ {{ end }}
7
9
  </div>
8
- </div>
10
+ </div>