Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

CodheadClub/TCCSite

Repository files navigation

TCCSite

An Eleventy/11ty site built on a customised version of 11ty-plain-boostrap5 to be used by The Codhead Club.

Plugins

Standard with template:

Added by @closebracket:

Commands

Install via

  • npm install

Start local development with

  • npm run dev

Preview runs on http://localhost:8080/.

Clean

  • For Windows: use: "clean": "del /s dist" on line 7 of package.json
  • For Linux/Production: use: "clean":"rm -rf dist" on line 7 of package.json

Editing

  • Work with files in src/-folder
  • Homepage: src/index.njk, Config: .eleventy.js
  • Don't edit _site/ folder (automatically generated)

Generate a static build with

  • npm run build

Advice: BASE_URL should be set as node env variable for open graph image support (they need full instead of relative URLs. You can strip them out as well in meta.njk. See .github/workflows/build-deploy.yaml for information. Currently it defaults to http://localhost:8080 if no env var is set.)

Technical background

Bootstrap information for npm/sass:

Sustainable Web Design:

  • Comment out not needed bootstrap components in src/scss/app.scss

TODOs