Blog site for Cato.tv, built with Gatsby from this starter template.
-
Clone the repo.
Use git cli to clone this repo.
git clone https://github.com/theNvN/cato-blog.git
-
Install dependencies.
Navigate into siteβs directory and install all required packages listed in
package.json
.cd cato-blog/ npm install
-
Start developing.
Start it up using gatsby cli.
gatsby develop
-
Open the source code and start editing!
Your site is now running at
http://localhost:8000
!Note: You'll also see a second link:
http://localhost:8000/___graphql
. This is a tool you can use to experiment with querying your data. Learn more about using this tool in the Gatsby tutorial.
A quick look at the top-level files and directories you'll see in a Gatsby project.
.
βββ node_modules
βββ src
βββ .gitignore
βββ .prettierrc
βββ gatsby-browser.js
βββ gatsby-config.js
βββ gatsby-node.js
βββ tsconfig.json
βββ LICENSE
βββ package-lock.json
βββ package.json
βββ README.md
There isn't any index.tsx
page in ./src/pages/
directory. Almost always this page is intended to be displayed at root path (/
), as home page. Instead page at root path is generated using the template - ./src/templates/blog-list-page.tsx
. This was done to display paginated list of blogs, so page at root will display first page (first paginated list of blogs) and subsequent pages will be displayed at paths /2
, /3
, /4
and so on.