eclipsefdn-hugo-solstice-theme 0.1.6 → 0.1.7
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.
- package/config.toml +23 -0
- package/exampleSite/config/_default/config.toml +1 -0
- package/exampleSite/content/custom-jumbotron/_index.md +4 -1
- package/i18n/en.toml +6 -0
- package/layouts/partials/astro/jumbotron.html +3 -3
- package/layouts/partials/astro/navbar.html +8 -3
- package/layouts/partials/astro/socials.html +73 -54
- package/package.json +2 -2
package/config.toml
CHANGED
|
@@ -1,3 +1,26 @@
|
|
|
1
|
+
[Params]
|
|
2
|
+
_merge = "shallow"
|
|
3
|
+
|
|
4
|
+
[[Params.socials]]
|
|
5
|
+
name = "X"
|
|
6
|
+
icon = "fa-brands fa-x-twitter"
|
|
7
|
+
url = "https://x.com/EclipseFdn"
|
|
8
|
+
|
|
9
|
+
[[Params.socials]]
|
|
10
|
+
name = "Facebook"
|
|
11
|
+
icon = "fa-brands fa-facebook-f"
|
|
12
|
+
url = "https://www.facebook.com/eclipse.org"
|
|
13
|
+
|
|
14
|
+
[[Params.socials]]
|
|
15
|
+
name = "YouTube"
|
|
16
|
+
icon = "fa-brands fa-youtube"
|
|
17
|
+
url = "https://www.youtube.com/user/EclipseFdn"
|
|
18
|
+
|
|
19
|
+
[[Params.socials]]
|
|
20
|
+
name = "LinkedIn"
|
|
21
|
+
icon = "fa-brands fa-linkedin-in"
|
|
22
|
+
url = "https://www.linkedin.com/company/eclipse-foundation"
|
|
23
|
+
|
|
1
24
|
# This is the default menus configuration for all websites consuming the theme.
|
|
2
25
|
# It will be discarded if menus.main is defined at the site-level.
|
|
3
26
|
|
|
@@ -24,6 +24,7 @@ baseURL = "https://webdev.eclipse.org/docs/hugo"
|
|
|
24
24
|
call_for_action_text = "Download"
|
|
25
25
|
call_for_action_url = "https://eclipse.org/downloads"
|
|
26
26
|
call_for_action_icon = ""
|
|
27
|
+
call_for_action_id = "download-cta"
|
|
27
28
|
show_events = true
|
|
28
29
|
table_classes = "table table-bordered"
|
|
29
30
|
hide_cfa_same_page = true
|
|
@@ -7,7 +7,10 @@ custom_jumbotron: "<h2 class=\"margin-top-10\">Guiding the Future of IDE Develop
|
|
|
7
7
|
date: 2021-03-07T08:00:00-24:00
|
|
8
8
|
hide_breadcrumb: true
|
|
9
9
|
summary: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed imperdiet tortor id rhoncus pulvinar. Suspendisse nec aliquam ante. Sed vel convallis ex, ac elementum nisi."
|
|
10
|
-
links: [
|
|
10
|
+
links: [
|
|
11
|
+
[href: "#",text: "Call for Papers", class: "btn btn-white", id: "cfp-btn"],
|
|
12
|
+
[href: "#",text: "Register", class: "btn btn-secondary"]
|
|
13
|
+
]
|
|
11
14
|
layout: single
|
|
12
15
|
show_featured_story: true
|
|
13
16
|
show_featured_footer: false
|
package/i18n/en.toml
CHANGED
|
@@ -71,9 +71,9 @@
|
|
|
71
71
|
{{ $btn_class = $.Scratch.Get "jumbotron_btn" }}
|
|
72
72
|
{{ end }}
|
|
73
73
|
<li>
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
74
|
+
<a class="{{ $btn_class }}" href="{{ (index $val 0).href}}" {{ with (index $val 3) -}} id="{{ .id | safeHTMLAttr }}" {{- end }}>
|
|
75
|
+
{{ (index $val 1).text}}
|
|
76
|
+
</a>
|
|
77
77
|
</li>
|
|
78
78
|
{{ end }}
|
|
79
79
|
</ul>
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
{{ $call_for_action_text := .Site.Params.call_for_action_text }}
|
|
19
19
|
{{ $call_for_action_url := .Site.Params.call_for_action_url }}
|
|
20
20
|
{{ $call_for_action_icon := .Site.Params.call_for_action_icon }}
|
|
21
|
+
{{ $call_for_action_id := .Site.Params.call_for_action_id }}
|
|
21
22
|
|
|
22
23
|
{{ $hide_cfa := .Site.Params.hide_call_for_action | default .Page.Params.hide_call_for_action | default false }}
|
|
23
24
|
|
|
@@ -32,9 +33,13 @@
|
|
|
32
33
|
{{ partial "nav.html" . }}
|
|
33
34
|
<div class="header-navbar-end">
|
|
34
35
|
{{ if not $hide_cfa }}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
<a
|
|
37
|
+
class="header-navbar-end-download-btn btn btn-primary"
|
|
38
|
+
href="{{ $call_for_action_url }}"
|
|
39
|
+
{{ with $call_for_action_id -}} id="{{ . }}" {{- end }}
|
|
40
|
+
>
|
|
41
|
+
<i class="fa {{ $call_for_action_icon }}" aria-hidden="true"></i>
|
|
42
|
+
{{ $call_for_action_text }}
|
|
38
43
|
</a>
|
|
39
44
|
{{ end }}
|
|
40
45
|
<button class="mobile-menu-btn" aria-label="Toggle mobile navigation menu" aria-expanded="false">
|
|
@@ -10,61 +10,80 @@
|
|
|
10
10
|
SPDX-License-Identifier: EPL-2.0
|
|
11
11
|
*/}}
|
|
12
12
|
|
|
13
|
-
{{ $twitter_url := $.Site.Params.twitter_url
|
|
14
|
-
{{ $facebook_url := $.Site.Params.facebook_url
|
|
13
|
+
{{ $twitter_url := $.Site.Params.twitter_url }}
|
|
14
|
+
{{ $facebook_url := $.Site.Params.facebook_url }}
|
|
15
15
|
{{ $instagram_url := $.Site.Params.instagram_url }}
|
|
16
|
-
{{ $youtube_url := $.Site.Params.youtube_url
|
|
17
|
-
{{ $linkedin_url := $.Site.Params.linkedin_url
|
|
16
|
+
{{ $youtube_url := $.Site.Params.youtube_url }}
|
|
17
|
+
{{ $linkedin_url := $.Site.Params.linkedin_url }}
|
|
18
|
+
|
|
19
|
+
{{/* To support the legacy "socialmedia_url" params */}}
|
|
20
|
+
{{ $socials := slice }}
|
|
21
|
+
{{ $using_legacy_socials := cond (or (ne $facebook_url nil) (ne $twitter_url nil) (ne $instagram_url nil) (ne $youtube_url nil) (ne $linkedin_url nil)) true false }}
|
|
22
|
+
|
|
23
|
+
{{ if $using_legacy_socials }}
|
|
24
|
+
{{ with $twitter_url }}
|
|
25
|
+
{{ $x := (dict
|
|
26
|
+
"name" "X"
|
|
27
|
+
"url" .
|
|
28
|
+
"icon" "fa-brands fa-x-twitter"
|
|
29
|
+
) }}
|
|
30
|
+
{{ $socials = $socials | append $x }}
|
|
31
|
+
{{ end }}
|
|
32
|
+
{{ with $facebook_url }}
|
|
33
|
+
{{ $facebook := (dict
|
|
34
|
+
"name" "Facebook"
|
|
35
|
+
"url" .
|
|
36
|
+
"icon" "fa-brands fa-facebook-f"
|
|
37
|
+
) }}
|
|
38
|
+
{{ $socials = $socials | append $facebook }}
|
|
39
|
+
{{ end }}
|
|
40
|
+
{{ with $instagram_url }}
|
|
41
|
+
{{ $instagram := (dict
|
|
42
|
+
"name" "Instagram"
|
|
43
|
+
"url" .
|
|
44
|
+
"icon" "fa-brands fa-instagram"
|
|
45
|
+
) }}
|
|
46
|
+
{{ $socials = $socials | append $instagram }}
|
|
47
|
+
{{ end }}
|
|
48
|
+
{{ with $youtube_url }}
|
|
49
|
+
{{ $youtube := (dict
|
|
50
|
+
"name" "YouTube"
|
|
51
|
+
"url" .
|
|
52
|
+
"icon" "fa-brands fa-youtube"
|
|
53
|
+
) }}
|
|
54
|
+
{{ $socials = $socials | append $youtube }}
|
|
55
|
+
{{ end }}
|
|
56
|
+
{{ with $linkedin_url }}
|
|
57
|
+
{{ $linkedin := (dict
|
|
58
|
+
"name" "LinkedIn"
|
|
59
|
+
"url" .
|
|
60
|
+
"icon" "fa-brands fa-linkedin-in"
|
|
61
|
+
) }}
|
|
62
|
+
{{ $socials = $socials | append $linkedin }}
|
|
63
|
+
{{ end }}
|
|
64
|
+
{{ else }}
|
|
65
|
+
{{ $socials = $.Site.Params.socials }}
|
|
66
|
+
{{ end }}
|
|
18
67
|
|
|
19
68
|
<div class="footer-end-social">
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
<
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
{{ if $instagram_url }}
|
|
41
|
-
<li>
|
|
42
|
-
<a class="link-unstyled" href="{{ $instagram_url }}" title="{{ i18n "footer-sr-instagram-text" }}">
|
|
43
|
-
<span class="fa-stack">
|
|
44
|
-
<i class="fa-solid fa-circle fa-stack-2x" aria-hidden="true"></i>
|
|
45
|
-
<i class="fa-brands fa-instagram fa-stack-1x fa-inverse" aria-hidden="true"></i>
|
|
46
|
-
<span class="sr-only">{{ i18n "footer-sr-instagram-text" }}</span>
|
|
47
|
-
</span>
|
|
48
|
-
</a>
|
|
49
|
-
</li>
|
|
50
|
-
{{ end }}
|
|
51
|
-
<li>
|
|
52
|
-
<a class="link-unstyled" href="{{ $youtube_url }}" title="{{ i18n "footer-sr-youtube-text" }}">
|
|
53
|
-
<span class="fa-stack">
|
|
54
|
-
<i class="fa-solid fa-circle fa-stack-2x" aria-hidden="true"></i>
|
|
55
|
-
<i class="fa-brands fa-youtube fa-stack-1x fa-inverse" aria-hidden="true"></i>
|
|
56
|
-
<span class="sr-only">{{ i18n "footer-sr-youtube-text" }}</span>
|
|
57
|
-
</span>
|
|
58
|
-
</a>
|
|
59
|
-
</li>
|
|
60
|
-
<li>
|
|
61
|
-
<a class="link-unstyled" href="{{ $linkedin_url }}" title="{{ i18n "footer-sr-linkedin-text" }}">
|
|
62
|
-
<span class="fa-stack">
|
|
63
|
-
<i class="fa-solid fa-circle fa-stack-2x" aria-hidden="true"></i>
|
|
64
|
-
<i class="fa-brands fa-linkedin-in fa-stack-1x fa-inverse" aria-hidden="true"></i>
|
|
65
|
-
<span class="sr-only">{{ i18n "footer-sr-linkedin-text" }}</span>
|
|
66
|
-
</span>
|
|
67
|
-
</a>
|
|
68
|
-
</li>
|
|
69
|
-
</ul>
|
|
69
|
+
<p class="footer-end-social-text hidden-xs">Follow Us:</p>
|
|
70
|
+
<ul class="footer-end-social-links list-inline">
|
|
71
|
+
{{ range $socials }}
|
|
72
|
+
{{ $i18n_key := printf "footer-sr-%s-text" (urlize (lower .name)) }}
|
|
73
|
+
{{ $text := i18n $i18n_key | default .name }}
|
|
74
|
+
<li>
|
|
75
|
+
<a
|
|
76
|
+
class="link-unstyled"
|
|
77
|
+
href="{{ .url }}"
|
|
78
|
+
title="{{ i18n $i18n_key }}"
|
|
79
|
+
>
|
|
80
|
+
<span class="fa-stack">
|
|
81
|
+
<i class="fa-solid fa-circle fa-stack-2x" aria-hidden="true"></i>
|
|
82
|
+
<i class="{{ .icon }} fa-stack-1x fa-inverse" aria-hidden="true"></i>
|
|
83
|
+
<span class="sr-only">{{ $text }}</span>
|
|
84
|
+
</span>
|
|
85
|
+
</a>
|
|
86
|
+
</li>
|
|
87
|
+
{{ end }}
|
|
88
|
+
</ul>
|
|
70
89
|
</div>
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"main": "webpack.min.js",
|
|
5
5
|
"author": "Christopher Guindon",
|
|
6
6
|
"license": "EPL-2.0",
|
|
7
|
-
"version": "0.1.
|
|
7
|
+
"version": "0.1.7",
|
|
8
8
|
"bugs": {
|
|
9
9
|
"url": "https://gitlab.eclipse.org/eclipsefdn/it/webdev/hugo-solstice-theme/-/issues"
|
|
10
10
|
},
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"readmeFilename": "README.md",
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"axios": "^1.7.7",
|
|
26
|
-
"eclipsefdn-solstice-assets": "0.1.
|
|
26
|
+
"eclipsefdn-solstice-assets": "0.1.9",
|
|
27
27
|
"json2yaml": "^1.1.0",
|
|
28
28
|
"toml": "^3.0.0"
|
|
29
29
|
},
|