Skip to content

Commit 32ccfbf

Browse files
authored
Merge pull request #23 from metafacture/update-packages
update and upgrade packages
2 parents 605d3cc + a811cbb commit 32ccfbf

File tree

11 files changed

+15453
-27975
lines changed

11 files changed

+15453
-27975
lines changed

.github/workflows/deploy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- uses: actions/checkout@v1
1313
- uses: actions/setup-node@v2
1414
with:
15-
node-version: 15
15+
node-version: 18
1616
- uses: enriikke/gatsby-gh-pages-action@v2
1717
with:
1818
access-token: x-access-token:${{ secrets.GITHUB_TOKEN }}

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
legacy-peer-deps=true

.nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
18

README.md

+5-7
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,14 @@ Download and install the latest Node.js version from [the official Node.js websi
1616

1717
#### Unix
1818

19-
Download the lastest nvm version.
20-
```
21-
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.1/install.sh | bash
22-
```
19+
[Install the lastest nvm version](https://github.com/nvm-sh/nvm#installing-and-updating).
2320

24-
Set default Node.js version. When nvm is installed, it does not default to a particular node version. You’ll need to install the version you want and give nvm instructions to use it. This example uses the version 10 release, but more recent version numbers can be used instead.
21+
Set default Node.js version. When nvm is installed, it does not default to a particular node version. You’ll need to install the version you want and give nvm instructions to use it.
22+
See [here](https://github.com/nvm-sh/nvm#bash) to automatically switch to the correct node version (not necessary, but handy).
2523

2624
```
27-
nvm install 15
28-
nvm use 15
25+
nvm install 18
26+
nvm use 18
2927
```
3028

3129
### Install gatsby

gatsby-config.js

+16-25
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module.exports = {
22
siteMetadata: {
33
title: `Metafacture Blog`,
44
author: {
5-
name: `the Metafacture community`
5+
name: `the Metafacture community`,
66
},
77
description: `A blog for the ETL toolkit Metafacture.`,
88
siteUrl: `https://blog.metafacture.org/`,
@@ -52,7 +52,7 @@ module.exports = {
5252
ordered: false,
5353
fromHeading: 1,
5454
toHeading: 6,
55-
className: "table-of-contents"
55+
className: "table-of-contents",
5656
},
5757
},
5858
`gatsby-remark-autolink-headers`,
@@ -64,12 +64,6 @@ module.exports = {
6464
},
6565
`gatsby-transformer-sharp`,
6666
`gatsby-plugin-sharp`,
67-
// {
68-
// resolve: `gatsby-plugin-google-analytics`,
69-
// options: {
70-
// trackingId: `ADD YOUR TRACKING ID HERE`,
71-
// },
72-
// },
7367
{
7468
resolve: `gatsby-plugin-feed`,
7569
options: {
@@ -98,26 +92,23 @@ module.exports = {
9892
})
9993
})
10094
},
101-
query: `
102-
{
103-
allMarkdownRemark(
104-
sort: { order: DESC, fields: [frontmatter___date] },
105-
) {
106-
nodes {
107-
excerpt
108-
html
109-
fields {
110-
slug
111-
}
112-
frontmatter {
113-
title
114-
date
115-
}
95+
query: `{
96+
allMarkdownRemark(sort: {frontmatter: {date: DESC}}) {
97+
nodes {
98+
excerpt
99+
html
100+
fields {
101+
slug
102+
}
103+
frontmatter {
104+
title
105+
date
116106
}
117107
}
118108
}
119-
`,
109+
}`,
120110
output: "/rss.xml",
111+
title: "Metafacture RSS Feed",
121112
},
122113
],
123114
},
@@ -135,7 +126,7 @@ module.exports = {
135126
},
136127
},
137128
`gatsby-plugin-react-helmet`,
138-
`gatsby-plugin-gatsby-cloud`,
129+
`gatsby-plugin-fontawesome-css`
139130
// this (optional) plugin enables Progressive Web App + Offline functionality
140131
// To learn more, visit: https://gatsby.dev/offline
141132
// `gatsby-plugin-offline`,

gatsby-node.js

+9-14
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,16 @@ exports.createPages = async ({ graphql, actions, reporter }) => {
99

1010
// Get all markdown blog posts sorted by date
1111
const result = await graphql(
12-
`
13-
{
14-
allMarkdownRemark(
15-
sort: { fields: [frontmatter___date], order: ASC }
16-
limit: 1000
17-
) {
18-
nodes {
19-
id
20-
fields {
21-
slug
22-
}
23-
}
24-
}
12+
`{
13+
allMarkdownRemark(sort: {frontmatter: {date: ASC}}, limit: 1000) {
14+
nodes {
15+
id
16+
fields {
17+
slug
2518
}
26-
`
19+
}
20+
}
21+
}`
2722
)
2823

2924
if (result.errors) {

0 commit comments

Comments
 (0)