Use projects.js from hugo theme
Signed-off-by:
Eric Poirier <eric.poirier@eclipse-foundation.org>
Showing
- content/projects/_index.md 15 additions, 4 deletionscontent/projects/_index.md
- data/featured-projects-categories.json 0 additions, 0 deletionsdata/featured-projects-categories.json
- js/main.js 1 addition, 1 deletionjs/main.js
- js/src/projects.js 0 additions, 207 deletionsjs/src/projects.js
- layouts/shortcodes/home/projects.html 1 addition, 1 deletionlayouts/shortcodes/home/projects.html
- layouts/shortcodes/page/projects.html 5 additions, 3 deletionslayouts/shortcodes/page/projects.html
- less/_components/homepage.less 1 addition, 1 deletionless/_components/homepage.less
- less/_components/projects.less 0 additions, 53 deletionsless/_components/projects.less
- package.json 2 additions, 4 deletionspackage.json
- yarn.lock 25 additions, 0 deletionsyarn.lock
File moved
js/src/projects.js
deleted
100644 → 0
... | ... | @@ -18,11 +18,9 @@ |
"hot": "NODE_ENV=development webpack-dev-server --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js", | ||
"production": "NODE_ENV=production webpack --progress --config=node_modules/laravel-mix/setup/webpack.config.js", | ||
"install": "NODE_ENV=production npm run production", | ||
"postinstall": "npm run fetch_projects && npm run yaml2json_projects", | ||
"fetch_projects": "node node_modules/eclipsefdn-hugo-solstice-theme/bin/projects/index.js -l data -u https://projects.eclipse.org/api/projects?working_group=cloud-development-tools", | ||
"yaml2json_projects": "node node_modules/js-yaml/bin/js-yaml.js -c data/eclipsefdn_projects.yaml | node node_modules/json-minify/index.js > static/js/projects.json", | ||
"postinstall": "cp data/featured-projects-categories.json static/js", | ||
"disallow_robots_txt": "echo \"User-agent: *\r\nDisallow: /\" > layouts/robots.txt", | ||
"build_netlify": "NODE_ENV=production npm run disallow_robots_txt && npm run production && npm run fetch_projects && npm run yaml2json_projects" | ||
"build_netlify": "NODE_ENV=production npm run disallow_robots_txt && npm run production && cp data/featured-projects-categories.json static/js" | ||
}, | ||
"dependencies": { | ||
"eclipsefdn-hugo-solstice-theme": "0.0.148", | ||
... | ... |
Please register or sign in to comment