Skip to content

realrubberduckdev/dp-blog

Repository files navigation

rubberduckdev-gatsby-casper

Blog site https://rubberduckdev.com/

This is a static blog generator and starter gatsby repo. A port of Casper v2 a theme from Ghost for GatsbyJS using TypeScript.

Local build

One time installs

Ignore if already installed.

Only builds with nodejs 16.14 Use chocolatey to install it or use docker build instead if cannot install the older 14.2 nodejs version for some reason.

npm install --global yarn
npm install --global [email protected]

Local dev

yarn install
gatsby build
gatsby develop

Docker build

docker build -t myproject/website .
docker run --rm -p 80:80 myproject/website
# Open your browser at http://localhost

How to edit your site title and description

Edit gatsby-config.js section siteMetadata

 siteMetadata: {
    title: 'My awesome site name',
    description: 'This is a description for my site',
    siteUrl: 'https://mysite.com', // full path to blog - no ending slash
  },

How to adjust pagination

In gatsby-node.js, edit the postsPerPage constant. The default value is six posts per page.

Releases

No releases published

Packages

No packages published