Git Product home page Git Product logo

kwblog's Introduction

KWBlog

This is my blog, now in Next.js. My first Static Site Generated (SSG) blog used Wyam, which is deprecated and "rebranded and rebooted as Statiq". It was never very popular, plus at this point I'm more familiar with React than I am with Razor/cshtml.

Next.js notes to the future

  • _app.js is where fonts are setup and global stylesheets are imported.
  • next.config.js sets "output: export" which tells it this is a static site and makes it write the site output to "out".
  • run watch mode: npm run dev

Using the Dev Container

First Time Setup

  • Install Docker Desktop on Windows
  • Install VS Code Dev Containers extension
  • In VS Code command palette run Dev Containers: Rebuild Container (?)

Once connected

  • In VSCode Terminal window, open new pwsh terminal. This is powershell running in the linux container!
  • BUT, watch isn't working, and googling hasn't found why yet... :(

Deploying

It is hosted in Google Firebase.

  • npx firebase logout; npx firebase login; might be needed if it's been a long time, even if firebase says it is already logged in.
  • to test with firebase before deploy: npx firebase serve --only hosting
  • to build the static site: .\build
  • to deploy: .\build deploy

kwblog's People

Contributors

kberridge avatar

Stargazers

Elvis Gideon Gatere Kinyanjui avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.