eclipsefdn-hugo-solstice-theme 0.1.11 → 0.1.12
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.
|
@@ -35,12 +35,14 @@ hide_sidebar: true
|
|
|
35
35
|
|
|
36
36
|
{{< newsroom/events id="event-paginate" paginate="true" >}}
|
|
37
37
|
|
|
38
|
+
## Custom Date Format (`yyyy-MM-dd 'at' HH:mm`)
|
|
39
|
+
|
|
40
|
+
{{< newsroom/events id="event-date" dateFormat="yyyy-MM-dd 'at' HH:mm" >}}
|
|
38
41
|
|
|
39
42
|
## Archive
|
|
40
43
|
|
|
41
44
|
{{< newsroom/events id="event-archive" archive="true" >}}
|
|
42
45
|
|
|
43
|
-
|
|
44
46
|
## Custom template (copy of events list template)
|
|
45
47
|
|
|
46
48
|
{{< newsroom/events id="event-template-id" templateId="custom-events-template" templatePath="/js/templates/event-list-format.mustache">}}
|
|
@@ -37,6 +37,10 @@ Note: each news container on a given page needs a unique ID. If an ID is not pro
|
|
|
37
37
|
|
|
38
38
|
{{< newsroom/news id="news-paginate" id="event-list-container-paginate" paginate="true" >}}
|
|
39
39
|
|
|
40
|
+
## Custom Date Format (`QQQ yyyy`)
|
|
41
|
+
|
|
42
|
+
{{< newsroom/news id="news-date" id="event-list-container-date" dateFormat="QQQ yyyy" >}}
|
|
43
|
+
|
|
40
44
|
|
|
41
45
|
## Custom template (copy of news no match height template)
|
|
42
46
|
|
|
@@ -28,6 +28,8 @@
|
|
|
28
28
|
{{ $past_event := .Get "past_event" | default "false" }}
|
|
29
29
|
{{ $includeLinks := .Get "includeList" }}
|
|
30
30
|
{{ $linksClass := .Get "linksClass" | default "list-inline block-summary-more margin-bottom-40" }}
|
|
31
|
+
{{ $dateFormat := .Get "dateFormat" }}
|
|
32
|
+
|
|
31
33
|
{{ if not (in (.Page.Scratch.Get "events-container-ids") $id) }}
|
|
32
34
|
{{ .Page.Scratch.Add "events-container-ids" (slice $id) }}
|
|
33
35
|
{{ end }}
|
|
@@ -45,9 +47,11 @@
|
|
|
45
47
|
{{ with $publishTarget }} data-publish-target="{{ . }}"{{ end }}
|
|
46
48
|
{{ with $sortField }} data-sort-field="{{ . }}"{{ end }}
|
|
47
49
|
{{ with $sortOrder }} data-sort-order="{{ . }}"{{ end }}
|
|
50
|
+
{{ with $dateFormat }} data-date-format="{{ . }}"{{ end }}
|
|
48
51
|
{{ if or (eq $upcoming "true") (eq $upcoming "1") }} data-upcoming="1"{{ end }}
|
|
49
52
|
{{ if or (eq $archive "true") (eq $archive "1") }} data-archive="true"{{ end }}
|
|
50
|
-
{{ if or (eq $past_event "true") (eq $past_event "1") }} data-past-event="1"{{ end }}
|
|
53
|
+
{{ if or (eq $past_event "true") (eq $past_event "1") }} data-past-event="1"{{ end }}
|
|
54
|
+
>
|
|
51
55
|
</div>
|
|
52
56
|
{{ if eq $includeLinks "true" }}
|
|
53
57
|
<ul class="{{ $linksClass }}">
|
|
@@ -55,4 +59,4 @@
|
|
|
55
59
|
<li class="news-list-links-view-all"><a href="https://newsroom.eclipse.org/node/add/events">Submit Event</a></li>
|
|
56
60
|
</ul>
|
|
57
61
|
{{ end }}
|
|
58
|
-
</div>
|
|
62
|
+
</div>
|
|
@@ -26,6 +26,8 @@
|
|
|
26
26
|
{{ $includeLinks := .Get "includeList" }}
|
|
27
27
|
{{ $filterId := .Get "filterId" }}
|
|
28
28
|
{{ $linksClass := .Get "linksClass" | default "list-inline block-summary-more margin-bottom-40" }}
|
|
29
|
+
{{ $dateFormat := .Get "dateFormat" }}
|
|
30
|
+
|
|
29
31
|
{{ if not (in (.Page.Scratch.Get "news-container-ids") $id) }}
|
|
30
32
|
{{ .Page.Scratch.Add "news-container-ids" (slice $id) }}
|
|
31
33
|
{{ end }}
|
|
@@ -43,7 +45,9 @@
|
|
|
43
45
|
{{ with $publishTarget }} data-publish-target="{{ . }}"{{ end }}
|
|
44
46
|
{{ with $sortField }} data-sort-field="{{ . }}"{{ end }}
|
|
45
47
|
{{ with $sortOrder }} data-sort-order="{{ . }}"{{ end }}
|
|
46
|
-
{{ with $filterId }} data-filter-id="{{ . }}"{{ end }}
|
|
48
|
+
{{ with $filterId }} data-filter-id="{{ . }}"{{ end }}
|
|
49
|
+
{{ with $dateFormat }} data-date-format="{{ . }}"{{ end }}
|
|
50
|
+
>
|
|
47
51
|
</div>
|
|
48
52
|
{{ if eq $includeLinks "true" }}
|
|
49
53
|
<ul class="{{ $linksClass }}">
|
|
@@ -51,4 +55,4 @@
|
|
|
51
55
|
<li class="news-list-links-view-all"><a href="https://newsroom.eclipse.org/node/add/news">Submit News</a></li>
|
|
52
56
|
</ul>
|
|
53
57
|
{{ end }}
|
|
54
|
-
</div>
|
|
58
|
+
</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.12",
|
|
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.15",
|
|
27
27
|
"json2yaml": "^1.1.0",
|
|
28
28
|
"toml": "^3.0.0"
|
|
29
29
|
},
|