Skip to content
This repository was archived by the owner on Feb 5, 2022. It is now read-only.

Commit 9e11802

Browse files
authored
Revert "feat(sitemap): implemented sitemap generator"
1 parent 1d1ae73 commit 9e11802

File tree

6 files changed

+2252
-2176
lines changed

6 files changed

+2252
-2176
lines changed

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,6 @@ If a developer went through providing all the information during a `npm run cz`
140140

141141
## Blog Integration
142142

143-
## Sitemap
144-
This project uses [sitemap-static](https://github.com/tmcw/sitemap-static) to generate a sitemap based on the prerendered site. This is needed because the content and routes associated with blog posts will change frequently. This is acheived with the `scripts/build-sitemap.js` script, which runs after each build.
145-
146-
## Deployment
147143
This project uses [ButterCMS](https://buttercms.com/) as a headless content management system. When a user accesses the deployed site, the blog data will be loaded from the ButterCMS API via AJAX. However, the blog data is also utilized in prerendering the site, to improve SEO. Before any build (dev, prod, prerender), the get-butter.js script is run to retrieve the blog data and stored in pages/blog-post/prerender-blog-data.ts. This file is git-ignored so that the repo is not cluttered with blog content.
148144

149145
The project also utilizes webhooks from [ButterCMS](https://buttercms.com/docs/api/?javascript#webhooks) and [Travis](https://docs.travis-ci.com/user/triggering-builds) to keep the prerendered blog content up to date. Whenever a new blog post is published, Butter's webook invokes the cloud function rebuildMaster, which relays the information to the Travis API, which in turn will trigger a rebuild and redeploy of the master branch. Butter's webhooks are managed in the ButterCMS portal.

0 commit comments

Comments
 (0)