Skip to content

pietrop/pietrop.github.io

Repository files navigation

Blog

Personal blog using 11ty.

Development env

Node version is set in node version manager .nvmrc

nvm use

Setup

git clone git@github.com:pietrop/pietrop.github.io.git
npm install

Usage

For local development

npm start

System Architecture

Static blog in markdown using 11ty.

  • _data/site.json is where site wide info goes.
  • _includes is where you can find the layout and other partials for templating.
  • _site is the output of build (excluded from git)
  • categories is where the markdown blogposts go, organized in folders.
  • public public folder for static assets
  • images where image assets are stored

Documentation

Images

Dark mode

Experimental

Visual code extension

Build

npm run build

Tests

NA

Deployment

Github actions

There's a github action configured to build and deploy automatically when pushing to master.

"manual deploy"

npm run build:deploy

Deployment, deploys to github pages.