eclipsefdn-hugo-solstice-theme 0.1.10 → 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.
- package/exampleSite/content/components/newsroom/events.md +3 -1
- package/exampleSite/content/components/newsroom/news.md +4 -0
- package/exampleSite/data/doc_params.yml +5 -0
- package/layouts/_default/baseof.html +1 -1
- package/layouts/_default/summary.html +2 -2
- package/layouts/shortcodes/newsroom/events.html +6 -2
- package/layouts/shortcodes/newsroom/news.html +6 -2
- package/package.json +2 -2
|
@@ -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
|
|
|
@@ -152,3 +152,8 @@ items:
|
|
|
152
152
|
description: Target specific menu identifiers. Used when a page or sub-section uses different sidebar content than the rest of the section it's in. Each identifier must have a corresponding "menu.sidebar" entry in the site's "config" file. If this parameter is omitted, the default sidebar for the section is used.
|
|
153
153
|
values:
|
|
154
154
|
- An array of string values
|
|
155
|
+
-
|
|
156
|
+
name: body_class
|
|
157
|
+
description: Add classes to the body element.
|
|
158
|
+
values:
|
|
159
|
+
- Any string value
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
{{ block "head-custom" . }}{{ partial "head_custom.html" . }}{{ end }}
|
|
18
18
|
{{ block "head-suffix" . }}{{ partial "head_suffix.html" . }}{{ end }}
|
|
19
19
|
</head>
|
|
20
|
-
<body>
|
|
20
|
+
<body {{ with .Page.Params.body_class -}}class="{{ . }}"{{- end }}>
|
|
21
21
|
{{ block "header" . }}{{ partial "header.html" . }}{{ end }}
|
|
22
22
|
{{ block "breadcrumbs" . }}{{ if and (and (ne .Page.Params.hide_breadcrumb true) (ne .Site.Params.hide_breadcrumb true)) (eq (.Site.Params.layout_style | default "quicksilver") "quicksilver") }}{{ partial "breadcrumbs.html" . }}{{end}}{{ end }}
|
|
23
23
|
{{ block "featured_story" . }}{{ partial "featured_story.html" . }}{{ end }}
|
|
@@ -14,6 +14,6 @@
|
|
|
14
14
|
<a href="{{- with .Params.redirect_url | default .Params.link | default .RelPermalink }} {{.}} {{- end }}" class="media media-link{{ if eq .Section "news" }} match-height-item{{ end }}">
|
|
15
15
|
<p class="media-date">{{ .Date.Format "Monday, Jan 2, 2006" }}</p>
|
|
16
16
|
<h4 class="media-heading">{{ .Title | safeHTML }}</h4>
|
|
17
|
-
<p class="media-text">{{ .
|
|
17
|
+
<p class="media-text">{{ .Params.summary | default .Params.description | default (.Plain | replaceRE "{{[\\s\\S]*?}}" "" | truncate 300) }}</p>
|
|
18
18
|
</a>
|
|
19
|
-
</div>
|
|
19
|
+
</div>
|
|
@@ -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
|
},
|