-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update images * update routes * update routes * fix lint * update readme && nvm * update bg
- Loading branch information
1 parent
98ff360
commit caefc35
Showing
9 changed files
with
29 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
v16.20.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,41 +21,44 @@ The theme requires you to have a contentful account. You can register your accou | |
|
||
Clone the theme | ||
|
||
``` | ||
```sh | ||
git clone [email protected]:thebakerdev/gatsby-starter-zenii.git | ||
``` | ||
|
||
Install dependencies | ||
|
||
``` | ||
```sh | ||
npm install | ||
``` | ||
|
||
This project comes with a Contentful setup command from [https://github.com/contentful-userland/gatsby-contentful-starter](https://github.com/contentful-userland/gatsby-contentful-starter). | ||
|
||
``` | ||
```sh | ||
npm run setup | ||
``` | ||
|
||
The process will ask for your credentials which can be found on your contentful settings. | ||
|
||
### Development Commands | ||
|
||
Run the project locally | ||
Switch NodeJS version to v16.20.2 (You should first **have NodeJS v16.20.2 installed**), and run the project locally. | ||
|
||
``` | ||
```sh | ||
nvm use | ||
npm run develop | ||
``` | ||
|
||
Some errors may pop out, just type `y` and enter to continue. The website will be running on `localhost:8000` | ||
|
||
Build the project | ||
|
||
``` | ||
```sh | ||
npm run build | ||
``` | ||
|
||
Serve the build project | ||
|
||
``` | ||
```sh | ||
npm run serve | ||
``` | ||
|
||
|
@@ -81,7 +84,7 @@ You can simply add new sections and pages in the theme by creating new contentfu | |
- Import the new component inside the **section.js** file and add it to the components array. | ||
- Add static query inside your new section component. Make sure that the component accepts **contentModuleId** as a prop. | ||
|
||
``` | ||
```django | ||
const data = useStaticQuery(graphql` | ||
query { | ||
allContentfulLayoutPortfolio { | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters