0
0
Fork 0
Source code of the Opnxng website
Go to file
Opnxng d38b1721d9 Added Rat Ain't Tieba 2024-03-23 11:52:51 +08:00
assests Blog entry + colours 2023-11-22 02:07:41 +08:00
src Added Rat Ain't Tieba 2024-03-23 11:52:51 +08:00
.eleventy.js Added markdown-it-anchor 2023-12-16 17:56:39 +08:00
.gitignore Inital commit 2023-11-05 23:05:38 +08:00
LICENSE Updated LICENSE 2023-11-07 07:43:11 +08:00
README.md Added markdown-it-anchor 2023-12-16 17:56:39 +08:00
package-lock.json Blog Entry: Replaced Libreddit with Redlib 2023-12-27 15:38:21 +08:00
package.json Added markdown-it-anchor 2023-12-16 17:56:39 +08:00

README.md

Opnxng website

The source code of about.opnxng.com, powered by Eleventy.

Credits

EB Garamond, a FOSS typeface designed by Georg Mayr-Duffner, is used for the drop caps. It is available on Github.

Heldane Text, another Garalde designed by Kris Sowersby, is used for the body text.

The site used the reset styles by Eric A. Meyer and the SVG Favicons generator by Shuntaro Nishizawa.

Usage

# Initialize
docker run --rm --name=npm -u 1000 -v /path/to/website:/app -w /app node:lts-slim npm init -y

# Install node modules
docker run --rm --name=npm -u 1000 -v /path/to/website:/app -w /app node:lts-slim npm install \
  npm \
  @11ty/eleventy \
  luxon \
  html-minifier \
  clean-css \
  markdown-it-attrs \
  markdown-it-bracketed-spans \
  markdown-it-anchor
# Generate website
docker run --rm --name=npm -u 1000 -v /path/to/website:/app -w /app node:lts-slim npx eleventy
# Update
docker run --rm --name=npm -u 1000 -v /path/to/website:/app -w /app node:lts-slim npm update