Skip to content

Commit 92bd0a8

Browse files
authored
Merge branch 'main' into patch-2
2 parents 999fb4c + 27ae918 commit 92bd0a8

File tree

242 files changed

+9269
-2124
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

242 files changed

+9269
-2124
lines changed

.eleventy.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
const lodashGet = require("lodash/get");
22
const yaml = require("js-yaml");
3+
const { URL } = require("url");
34

45
module.exports = function (eleventyConfig) {
56
// Support yaml data files
@@ -38,6 +39,10 @@ module.exports = function (eleventyConfig) {
3839
return md.render(content);
3940
});
4041

42+
eleventyConfig.addFilter('absoluteUrl', (url, base) => {
43+
return (new URL(url, base)).toString() || url
44+
})
45+
4146

4247
eleventyConfig.addFilter('convertFromEpoc', (time) => {
4348
let date = new Date(0);
@@ -188,6 +193,7 @@ module.exports = function (eleventyConfig) {
188193
eleventyConfig.addPassthroughCopy("src/site/browserconfig.xml");
189194
eleventyConfig.addPassthroughCopy("src/site/site.webmanifest");
190195
eleventyConfig.addPassthroughCopy("src/site/survey/2021/community-survey-2021-methodology.pdf");
196+
eleventyConfig.addPassthroughCopy("src/site/survey/2022/community-survey-2022-methodology.pdf");
191197

192198
return {
193199
dir: {

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,20 @@ We accept contributions submitted as [pull requests](https://github.com/jamstack
1515

1616
To contribute a link to a resource:
1717

18-
1. Create a new yaml file in the [`src/site/_data/resources`](src/site/_data/resources) folder with a unique and descriptive name. Populate that file according to the structure shown below.
19-
1. For presentations and video, add an optional thumbnail image to the [`src/site/_data/resources`](src/site/img/cms/resources) folder. (Image should be a jpeg 600px wide and 400px tall)
18+
1. Create a new md file in the [`src/site/resources`](src/site/resources) folder with a unique and descriptive name. Populate that file according to the structure shown below.
19+
1. For presentations and video, add an optional thumbnail image to the [`src/site/img/cms`](src/site/img/cms) folder. (Image should be a jpeg 600px wide and 400px tall)
2020
1. Submit a pull request
2121

22-
_resource yaml reference:_
22+
_resource md reference:_
2323
```yaml
24+
---
2425
title: Resource title
2526
date: Publish date (YYYY-MM-DD)
2627
link: the URL of this resource
2728
thumbnailurl: /img/cms/resources/resource-thumbnail.jpg
2829
type:
2930
- article (Help us group and sort the resources by type article|video|presentation)
31+
---
3032
```
3133

3234
Before submitting a pull request, or if you are suggesting/contributing code or content changes, it is wise to preview your change in a local build. We've tried to make the process of running a local build as low as possible.
@@ -84,3 +86,4 @@ npm run start
8486
You can clone this repository and bootstrap it as a test site of your own, complete with the CI/CD build pipeline on [Netlify](https://netlify.com?utm_source=github&utm_medium=jamstackorg-pnh&utm_campaign=devex) by clicking the button below. (Requires free GitHub and Netlify accounts)
8587

8688
[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/jamstack/jamstack.org)
89+

netlify.toml

Lines changed: 26 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,19 @@
1212

1313
[[redirects]]
1414
from = "/conference"
15-
to = "https://jamstackconf.com/"
16-
status = 302
15+
to = "/conf"
16+
status = 301
1717

1818
[[redirects]]
19-
from = "/discord"
20-
to = "https://discord.gg/jamstack"
21-
status = 302
19+
from = "/conf"
20+
to = "https://jamstackconf.com/conf/"
21+
status = 200
22+
2223

2324
[[redirects]]
24-
from = "/women-of-jamstack/"
25-
to = "https://womenofjamstack.com"
26-
status = 302
25+
from = "/conf/*"
26+
to = "https://jamstackconf.com/conf/:splat"
27+
status = 200
2728

2829
[[redirects]]
2930
from = "/best-practices"
@@ -45,16 +46,6 @@
4546
to = "https://res.cloudinary.com/netlify/image/fetch/c_fit,l_text:Roboto_56_bold::term,co_rgb:FFFFFF,g_north_west,y_75,x_100,w_1000/c_fit,l_text:Roboto_38_light::summary,co_rgb:FFFFFF,g_north_west,y_200,x_160,w_885/https://jamstack.org/img/og/glossary-card-bg.png"
4647
status = 200
4748

48-
[[redirects]]
49-
from = "/conf/"
50-
to = "https://jamstackconf.com/"
51-
status = 302
52-
53-
[[redirects]]
54-
from = "/conf/cfp"
55-
to = "https://docs.google.com/forms/d/e/1FAIpQLSeR5W4m9owqDBJEq2EuRUNXFTOeLCxFPUn0qbuCE15o4SWDFg/viewform"
56-
status = 302
57-
5849
[[redirects]]
5950
from = "/glossary/*"
6051
to = "/glossary/contribute/index.html"
@@ -65,15 +56,31 @@
6556
to = "/headless-cms/keystone/"
6657
status = 301
6758

59+
[[redirects]]
60+
from = "/headless-cms/graphcms/"
61+
to = "/headless-cms/hygraph/"
62+
status = 301
63+
6864
[[redirects]]
6965
from = "/survey/"
70-
to = "/survey/2021/"
66+
to = "/survey/2022/"
7167
status = 302
7268

7369
[[redirects]]
7470
from = "/survey/2020/"
7571
to = "https://www.netlify.com/blog/2020/05/27/state-of-the-jamstack-survey-2020-first-results/"
7672
status = 301
7773

74+
[[redirects]]
75+
from = "/headless-cms/netlify-cms/"
76+
to = "/headless-cms/decap-cms/"
77+
status = 301
78+
79+
[[redirects]]
80+
from = "/discord"
81+
to = "https://answers.netlify.com/"
82+
status = 302
83+
7884
[[plugins]]
7985
package = "./plugins/keep-dot-cache-folder"
86+

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"autoprefixer": "^10.2.5",
2828
"cssnano": "^4.1.10",
2929
"d3": "^7.1.1",
30+
"d3-textwrap": "^3.0.0",
3031
"dotenv": "^8.2.0",
3132
"fast-glob": "^3.2.5",
3233
"gray-matter": "^4.0.2",
@@ -43,6 +44,6 @@
4344
"postcss-cli": "^8.3.1",
4445
"postcss-import": "^13.0.0",
4546
"spdx-correct": "^3.1.1",
46-
"tailwindcss": "^2.0.3"
47+
"tailwindcss": "^3.1.8"
4748
}
48-
}
49+
}

0 commit comments

Comments
 (0)