eclipsefdn-hugo-solstice-theme 0.0.163 → 0.0.166

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.
@@ -0,0 +1,16 @@
1
+ ---
2
+ title: "Eclipse Foundation Projects using Static Source"
3
+ hide_sidebar: true
4
+ ---
5
+
6
+ When this shortcode is passed `is_static_source`, you must provide it a `url` which points to a json resource.
7
+
8
+ *If you are on localhost, ensure you disable CORS in your browser to view.*
9
+
10
+ **Example:**
11
+ {{< eclipsefdn_projects
12
+ is_static_source="true"
13
+ url="/data/static-projects.json"
14
+ templateId="tpl-projects-item"
15
+ >}}
16
+
@@ -0,0 +1,58 @@
1
+ [
2
+ {
3
+ "name": "Example Project A",
4
+ "website_url": "#",
5
+ "topic": null,
6
+ "summary": "An example of a project static source.",
7
+ "logo": "https://projects.eclipse.org/sites/all/modules/custom/pmi/project_state/images/incubating.png",
8
+ "state": "running",
9
+ "tags": [
10
+ "CPS",
11
+ "Security"
12
+ ],
13
+ "mainCategory": "CPS",
14
+ "releases": [
15
+ {
16
+ "name": "0.2.0",
17
+ "url": "#"
18
+ }
19
+ ]
20
+ },
21
+ {
22
+ "name": "Example Project B",
23
+ "website_url": "#",
24
+ "topic": null,
25
+ "summary": "An example of a project static source.",
26
+ "logo": "https://projects.eclipse.org/sites/all/modules/custom/pmi/project_state/images/incubating.png",
27
+ "state": "running",
28
+ "tags": [
29
+ "Security"
30
+ ],
31
+ "mainCategory": "Security",
32
+ "releases": [
33
+ {
34
+ "name": "0.2.0",
35
+ "url": "#"
36
+ }
37
+ ]
38
+ },
39
+ {
40
+ "name": "Example Project C",
41
+ "website_url": "#",
42
+ "topic": null,
43
+ "summary": "An example of a project static source.",
44
+ "logo": "https://projects.eclipse.org/sites/all/modules/custom/pmi/project_state/images/incubating.png",
45
+ "state": "running",
46
+ "tags": [
47
+ "CPS",
48
+ "Security"
49
+ ],
50
+ "mainCategory": "CPS",
51
+ "releases": [
52
+ {
53
+ "name": "0.2.0",
54
+ "url": "#"
55
+ }
56
+ ]
57
+ }
58
+ ]
@@ -13,10 +13,13 @@
13
13
  {{ $id := .Get "id" | default "featured-story-container" }}
14
14
  {{ $templateId := .Get "templateId" }}
15
15
  {{ $projectIds := .Get "projectIds" }}
16
- {{ $url := .Get "url" }}
16
+ {{ $url := .Get "url" | relURL }}
17
+ {{ $is_static_source := .Get "is_static_source" | default "false" }}
17
18
  {{ $classes := .Get "classes" }}
18
19
  {{ $display_categories := .Get "display_categories" | default "false" }}
19
20
  {{ $categories := .Get "categories" | default "" }}
21
+ {{ $view_all_url := .Get "view_all_url" | default "/projects" }}
22
+ {{ $display_view_more := .Get "display_view_more" | default "true" }}
20
23
 
21
24
  <section id="wg-projects" class="container featured-section featured-section-projects" data-filter-wg="{{ $.Site.Params.projects_working_group }}">
22
25
  <div class="row">
@@ -30,10 +33,13 @@
30
33
  id="{{ $id }}"
31
34
  data-project-ids="{{ $projectIds }}"
32
35
  data-template-id="{{ $templateId }}"
33
- data-url="{{ $url }}"></ul>
36
+ data-url="{{ $url }}"
37
+ data-is-static-source="{{ $is_static_source }}"></ul>
34
38
  </div>
35
39
  </div>
36
- <p class="text-center margin-top-30">
37
- <a href="/projects" class="btn btn-primary">View All Projects</a>
38
- </p>
40
+ {{ if eq $display_view_more "true" }}
41
+ <p class="text-center margin-top-30">
42
+ <a href="{{ $view_all_url }}" class="btn btn-primary">View All Projects</a>
43
+ </p>
44
+ {{ end }}
39
45
  </section>
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.0.163",
7
+ "version": "0.0.166",
8
8
  "bugs": {
9
9
  "url": "https://gitlab.eclipse.org/eclipsefdn/it/webdev/hugo-solstice-theme/-/issues"
10
10
  },
@@ -24,7 +24,7 @@
24
24
  "readmeFilename": "README.md",
25
25
  "dependencies": {
26
26
  "axios": "^0.21.1",
27
- "eclipsefdn-solstice-assets": "0.0.202",
27
+ "eclipsefdn-solstice-assets": "^0.0.206",
28
28
  "json2yaml": "^1.1.0",
29
29
  "toml": "^3.0.0"
30
30
  },