/Siravijbb-Port-Gen3

The New but old website that just combine both web to 1 web

Primary LanguageAstro

Riffy Blog

The next iteration of Riffy Blog

Core changes

  • Near 0kB of JavaScript thanks to Astro
  • Design by using Tailwind

Demo

blog.rayriffy.com

To install

Create a workspace in Contentful and import content model with this provided JSON files.

Then, provide Contentful API keys by copying .env.example to .env. During developnent, scripts are going to use token CONTENTFUL_PREVIEW_ACCESS_TOKEN to obtain contents from CMS. Which means you will be able to see drafts or unpublished articles in local development, but not in production CI.

With that cleared, you can generate *.md Markdown contents by running generator scripts.

$ pnpm data build

If there're any encounter isuues related to the local contents, scripts can be use to delete all *.md as well.

$ pnpm data clean

To develop

Start local server with following command.

$ pnpm dev

To build

pnpm build

As a result, you will get dist/ directory which contains all static contents to be deployed.