eclipsefdn-hugo-solstice-theme 0.1.16 → 0.1.18

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.
@@ -76,7 +76,7 @@
76
76
 
77
77
  <div class="footer-end-social">
78
78
  <p class="footer-end-social-text hidden-xs">Follow Us:</p>
79
- <ul class="footer-end-social-links list-inline">
79
+ <ul class="footer-end-social-links list-unstyled">
80
80
  {{ range $socials }}
81
81
  {{ $text := i18n "footer-sr-social-account" .name | default (printf "%s account" .name) }}
82
82
  <li>
@@ -14,7 +14,7 @@
14
14
 
15
15
  <div class="col-sm-24 margin-top-20">
16
16
  <div class="row">
17
- <div id="copyright" class="col-md-16">
17
+ <div id="copyright" class="col-sm-16">
18
18
  <p id="copyright-text">{{ i18n "footer-copyright-text" | safeHTML}}</p>
19
19
  </div>
20
20
  {{ if eq $layout_style "quicksilver" }}
@@ -11,29 +11,81 @@
11
11
  SPDX-License-Identifier: EPL-2.0
12
12
  */}}
13
13
 
14
+ {{ $twitter_url := $.Site.Params.twitter_url }}
15
+ {{ $facebook_url := $.Site.Params.facebook_url }}
14
16
  {{ $instagram_url := $.Site.Params.instagram_url }}
17
+ {{ $youtube_url := $.Site.Params.youtube_url }}
18
+ {{ $linkedin_url := $.Site.Params.linkedin_url }}
19
+ {{ $bluesky_url := $.Site.Params.bluesky_url }}
15
20
 
16
- <div class="col-md-8 social-media">
17
- <ul class="list-inline">
18
- <li><a class="social-media-link fa-stack fa-lg" href="{{ $.Site.Params.twitter_url | default "https://twitter.com/EclipseFdn" }}"> <i class="fa-regular fa-circle fa-stack-2x"></i> <i
19
- class="fa-brands fa-x-twitter fa-stack-1x"></i> <span class="sr-only">{{ i18n "footer-sr-twitter-text" }}</span>
20
- </a></li>
21
- <li><a class="social-media-link fa-stack fa-lg" href="{{ $.Site.Params.bluesky_url | default "https://bsky.app/profile/eclipsefdn.bsky.social" }}" title="{{ i18n "footer-sr-bluesky-account" }}">
22
- <i class="fa-regular fa-circle fa-stack-2x"></i> <i class="fa-brands fa-bluesky fa-stack-1x"></i> <span class="sr-only">{{ i18n "footer-sr-bluesky-text" }}</span>
23
- </a></li>
24
- <li><a class="social-media-link fa-stack fa-lg" href="{{ $.Site.Params.facebook_url | default "https://www.facebook.com/eclipse.org" }}"> <i class="fa-regular fa-circle fa-stack-2x"></i> <i
25
- class="fa-brands fa-facebook-f fa-stack-1x"></i> <span class="sr-only">{{ i18n "footer-sr-facebook-text" }}</span>
26
- </a></li>
27
- {{ if $instagram_url }}
28
- <li><a class="social-media-link fa-stack fa-lg" href="{{ $instagram_url }}"> <i class="fa-regular fa-circle fa-stack-2x"></i> <i
29
- class="fa-brands fa-instagram fa-stack-1x"></i> <span class="sr-only">{{ i18n "footer-sr-instagram-text" }}</span>
21
+ {{/* To support the legacy "socialmedia_url" params */}}
22
+ {{ $socials := slice }}
23
+ {{ $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) (ne $bluesky_url nil)) true false }}
24
+
25
+ {{ if $using_legacy_socials }}
26
+ {{ with $twitter_url }}
27
+ {{ $x := (dict
28
+ "name" "X"
29
+ "url" .
30
+ "icon" "fa-brands fa-x-twitter"
31
+ ) }}
32
+ {{ $socials = $socials | append $x }}
33
+ {{ end }}
34
+ {{ with $facebook_url }}
35
+ {{ $facebook := (dict
36
+ "name" "Facebook"
37
+ "url" .
38
+ "icon" "fa-brands fa-facebook-f"
39
+ ) }}
40
+ {{ $socials = $socials | append $facebook }}
41
+ {{ end }}
42
+ {{ with $instagram_url }}
43
+ {{ $instagram := (dict
44
+ "name" "Instagram"
45
+ "url" .
46
+ "icon" "fa-brands fa-instagram"
47
+ ) }}
48
+ {{ $socials = $socials | append $instagram }}
49
+ {{ end }}
50
+ {{ with $youtube_url }}
51
+ {{ $youtube := (dict
52
+ "name" "YouTube"
53
+ "url" .
54
+ "icon" "fa-brands fa-youtube"
55
+ ) }}
56
+ {{ $socials = $socials | append $youtube }}
57
+ {{ end }}
58
+ {{ with $linkedin_url }}
59
+ {{ $linkedin := (dict
60
+ "name" "LinkedIn"
61
+ "url" .
62
+ "icon" "fa-brands fa-linkedin-in"
63
+ ) }}
64
+ {{ $socials = $socials | append $linkedin }}
65
+ {{ end }}
66
+ {{ with $bluesky_url }}
67
+ {{ $bluesky := (dict
68
+ "name" "Bluesky"
69
+ "url" .
70
+ "icon" "fa-brands fa-bluesky"
71
+ ) }}
72
+ {{ $socials = $socials | append $bluesky }}
73
+ {{ end }}
74
+ {{ else }}
75
+ {{ $socials = $.Site.Params.socials }}
76
+ {{ end }}
77
+
78
+ <div class="col-sm-8 social-media">
79
+ <ul class="list-unstyled social-links">
80
+ {{ range $socials }}
81
+ {{ $i18n_key := printf "footer-sr-%s-text" (urlize (lower .name)) }}
82
+ {{ $text := i18n $i18n_key | default .name }}
83
+ {{ $title_key := printf "footer-sr-%s-account" (urlize (lower .name)) }}
84
+ <li><a class="social-media-link fa-stack fa-lg" href="{{ .url }}" {{ with (i18n $title_key) }}title="{{ . }}"{{ end }}>
85
+ <i class="fa-regular fa-circle fa-stack-2x"></i>
86
+ <i class="{{ .icon }} fa-stack-1x"></i>
87
+ <span class="sr-only">{{ $text }}</span>
30
88
  </a></li>
31
89
  {{ end }}
32
- <li><a class="social-media-link fa-stack fa-lg" href="{{ $.Site.Params.youtube_url | default "https://www.youtube.com/user/EclipseFdn" }}"> <i class="fa-regular fa-circle fa-stack-2x"></i> <i
33
- class="fa-brands fa-youtube fa-stack-1x"></i> <span class="sr-only">{{ i18n "footer-sr-youtube-text" }}</span>
34
- </a></li>
35
- <li><a class="social-media-link fa-stack fa-lg" href="{{ $.Site.Params.linkedin_url | default "https://www.linkedin.com/company/eclipse-foundation" }}" title="{{ i18n "footer-sr-linkedin-account" }}">
36
- <i class="fa-regular fa-circle fa-stack-2x"></i> <i class="fa-brands fa-linkedin-in fa-stack-1x"></i> <span class="sr-only">{{ i18n "footer-sr-linkedin-text" }}</span>
37
- </a></li>
38
90
  </ul>
39
91
  </div>
@@ -1,22 +1,39 @@
1
1
  {{ if and (isset .Params "portalId") (isset .Params "formId")}}
2
- <!--[if lte IE 8]>
3
- <script
4
- charset="utf-8"
5
- type="text/javascript"
6
- src="//js.hsforms.net/forms/v2-legacy.js"
7
- ></script>
8
- <![endif]-->
2
+ <div id="hubspot-form-fallback" class="alert alert-info">
3
+ {{ if isset .Params "fallbackMessage" }}
4
+ {{ .Params.fallbackMessage | markdownify }}
5
+ {{ else }}
6
+ <p>
7
+ If you are unable to access the contact form, please reach out to us at
8
+ <a href="mailto:membership.coordination@eclipse-foundation.org"
9
+ >membership.coordination@eclipse-foundation.org</a
10
+ >
11
+ for assistance with your membership inquiry.
12
+ </p>
13
+ {{ end }}
14
+ </div>
9
15
 
16
+ <!--[if lte IE 8]>
10
17
  <script
11
18
  charset="utf-8"
12
19
  type="text/javascript"
13
- src="//js.hsforms.net/forms/v2.js"
20
+ src="//js.hsforms.net/forms/v2-legacy.js"
14
21
  ></script>
15
- <script>
22
+ <![endif]-->
23
+
24
+ <script
25
+ charset="utf-8"
26
+ type="text/javascript"
27
+ src="//js.hsforms.net/forms/v2.js"
28
+ ></script>
29
+ <script>
16
30
  hbspt.forms.create({
17
- region: 'na1',
31
+ region: "na1",
18
32
  portalId: '{{ index .Params "portalId"}}',
19
33
  formId: '{{ index .Params "formId"}}',
34
+ onFormReady: function () {
35
+ document.getElementById("hubspot-form-fallback").classList.add("hidden");
36
+ },
20
37
  });
21
- </script>
22
- {{ end }}
38
+ </script>
39
+ {{ end }}
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.16",
7
+ "version": "0.1.18",
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.18",
26
+ "eclipsefdn-solstice-assets": "0.1.20",
27
27
  "json2yaml": "^1.1.0",
28
28
  "toml": "^3.0.0"
29
29
  },