eclipsefdn-hugo-solstice-theme 0.2.2 → 0.2.3

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/Jenkinsfile CHANGED
@@ -5,7 +5,8 @@ hugo (
5
5
  productionDomain: 'webdev.eclipse.org',
6
6
  build: [
7
7
  containerImage: 'eclipsefdn/hugo-node:h0.144.2-n22.14.0',
8
- script: 'bin/build.sh'
8
+ script: 'bin/build.sh',
9
+ containerBuildMemoryLimits: '4Gi'
9
10
  ],
10
11
  deployment: [
11
12
  locationPath: '/docs/hugo'
@@ -24,7 +24,6 @@ var argv = require('yargs')
24
24
  .epilog('Copyright 2019 Eclipse Foundation inc.')
25
25
  .argv;
26
26
 
27
- const axios = require('axios');
28
27
  const fs = require('fs');
29
28
  const parse = require('parse-link-header');
30
29
  const yaml = require('json2yaml');
@@ -51,16 +50,16 @@ async function getProjectData() {
51
50
  // loop through all available users, and add them to a list to be returned
52
51
  while (hasMore) {
53
52
  // get the current page of results, incrementing page count after call
54
- result = await axios.get(url).then(result => {
53
+ result = await fetch(url).then(async result => {
55
54
  // return the data to the user
56
- var links = parse(result.headers.link);
55
+ var links = parse(result.headers.get('link'));
57
56
  if (links.self.url == links.last.url) {
58
57
  hasMore = false;
59
58
  } else {
60
59
  url = links.next.url;
61
60
  console.log(`Loading additional data using '${url}' as next URL`);
62
61
  }
63
- return result.data;
62
+ return result.json();
64
63
  }).catch(err => console.log(`Error fetching data for URL '${url}': ${err}`));
65
64
 
66
65
  // collect the results
@@ -71,4 +70,4 @@ async function getProjectData() {
71
70
  }
72
71
  }
73
72
  return data;
74
- }
73
+ }
@@ -1,19 +1,23 @@
1
1
  ---
2
2
  title: "Custom Jumbotron"
3
- headline: "Custom Jumbotron 2021"
4
3
  subtitle: >
5
4
  A Custom Jumbotron <span class="orange">Summit Event</span>
6
- custom_jumbotron: "<h2 class=\"margin-top-10\">Guiding the Future of IDE Development</h2><p class=\"margin-top-20\">May 19, 2021 8AM-11AM PST (5PM-8PM CET)</p>"
5
+ custom_jumbotron: |
6
+ <h1 class="margin-top-10">
7
+ Guiding the Future of IDE Development
8
+ </h1>
9
+ <p class="margin-top-20">May 19, 2021 8AM-11AM PST (5PM-8PM CET)</p>
7
10
  date: 2021-03-07T08:00:00-24:00
8
11
  hide_breadcrumb: true
9
12
  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
13
  links: [
11
- [href: "#",text: "Call for Papers", class: "btn btn-white", id: "cfp-btn"],
12
- [href: "#",text: "Register", class: "btn btn-secondary"]
14
+ [href: "#",text: "Register", class: "btn btn-primary"],
15
+ [href: "#",text: "Call for Papers", class: "btn btn-default", id: "cfp-btn"],
13
16
  ]
14
17
  layout: single
15
18
  show_featured_story: true
16
19
  show_featured_footer: false
20
+ hide_sidebar: true
17
21
  ---
18
22
 
19
23
  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. Nam eros lectus, tempus sit amet lorem at, laoreet blandit enim. Vestibulum metus justo, venenatis mollis ex quis, pretium ultricies orci. Pellentesque accumsan nulla ac leo convallis ornare. Cras rhoncus sapien lacus, vel tincidunt nibh lacinia ac. Vivamus vel egestas mi. Morbi nulla ante, rutrum quis congue non, luctus vehicula dui. Sed et nisi eu est egestas rhoncus.
@@ -18,9 +18,10 @@
18
18
 
19
19
  {{ $jumbotron_background_class := .Page.Params.jumbotron_background_class | default .Site.Params.jumbotron_background_class | default "bg bg-hero-1" }}
20
20
 
21
- {{ .Store.Set "has_jumbotron" (isset .Page.Params "headline") }}
21
+ {{ .Store.Set "has_jumbotron" (or (isset .Page.Params "headline") (isset .Page.Params "custom_jumbotron")) }}
22
+ {{ $has_jumbotron := .Store.Get "has_jumbotron" }}
22
23
 
23
- {{ if $headline }}
24
+ {{ if $has_jumbotron }}
24
25
  <section class="featured-jumbotron fade-group {{ $jumbotron_background_class }}">
25
26
  <div class="{{ $jumbotron_container }}">
26
27
  <div class="{{ $jumbotron_class }}">
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.2.2",
7
+ "version": "0.2.3",
8
8
  "bugs": {
9
9
  "url": "https://gitlab.eclipse.org/eclipsefdn/it/webdev/hugo-solstice-theme/-/issues"
10
10
  },
@@ -16,14 +16,13 @@
16
16
  "dev": "NODE_ENV=development webpack --progress --config=node_modules/laravel-mix/setup/webpack.config.js",
17
17
  "watch": "NODE_ENV=development webpack --watch --progress --config=node_modules/laravel-mix/setup/webpack.config.js",
18
18
  "hot": "NODE_ENV=development webpack-dev-server --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js",
19
- "production": "NODE_ENV=production webpack --progress --config=node_modules/laravel-mix/setup/webpack.config.js",
19
+ "production": "NODE_OPTIONS='--max-old-space-size=1024' NODE_ENV=production webpack --progress --config=node_modules/laravel-mix/setup/webpack.config.js",
20
20
  "fetch_project": "node bin/projects/index.js -l exampleSite/data",
21
21
  "build": "npm run production && npm run fetch_project"
22
22
  },
23
23
  "readmeFilename": "README.md",
24
24
  "dependencies": {
25
- "axios": "^1.7.7",
26
- "eclipsefdn-solstice-assets": "0.2.1",
25
+ "eclipsefdn-solstice-assets": "0.2.2",
27
26
  "json2yaml": "^1.1.0",
28
27
  "toml": "^3.0.0"
29
28
  },
Binary file
Binary file
Binary file
Binary file