Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build site with Eleventy #166

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
47 changes: 47 additions & 0 deletions .eleventy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
const fs = require("fs");

module.exports = function (eleventyConfig) {
// host static assets (anything in `./public/` on site root `/`)
eleventyConfig.addPassthroughCopy({ public: "/" });
// ignore files in folders (only transform top level html files)
eleventyConfig.ignores.add("*/**");
eleventyConfig.ignores.add("README.md");

eleventyConfig.addGlobalData("myStatic", () => {
return "this is data";
});

eleventyConfig.addGlobalData("years", () => {
all_fnames = fs
.readdirSync(".")
.filter((fname) => /^[0-9]{4}$/.test(fname));
years = {};
for (fname of all_fnames) {
files = fs.readdirSync(fname);
content = files.map((f) => fs.readFileSync(`${fname}/${f}`));
years[fname] = content;
}
return years;
});

// json stringify input, e.g., {{json some_data}}
eleventyConfig.addHandlebarsHelper("json", (data) => JSON.stringify(data));
// turn object keys into list, e.g., {{keys some_object_data}}
eleventyConfig.addHandlebarsHelper("keys", (obj) => Object.keys(obj));
// get max/min value from a list, e.g., {{min some_list}}
eleventyConfig.addHandlebarsHelper("min", (list) => Math.min(...list));
eleventyConfig.addHandlebarsHelper("max", (list) => Math.max(...list));
// generate integer sequence from low to high, e.g., {{seq 2006 2024}}
eleventyConfig.addHandlebarsHelper("seq", (low, high) =>
[...Array(high + 1 - low).keys()].map((i) => i + low)
);
// reverse list order
eleventyConfig.addHandlebarsHelper("rev", (arr) => arr.reverse());
// access key in object
eleventyConfig.addHandlebarsHelper("get", (obj, key) => obj[key]);

return {
// use handlebars for HTML
htmlTemplateEngine: "hbs",
};
};
55 changes: 55 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Build with Eleventy and deploy to GitHub Pages

on:
push:
branches: ["master"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Setup Pages
uses: actions/configure-pages@v4

- name: Build
run: npm run build

- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: "./_site"

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v3
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# npm
/node_modules

# build
/_site
825 changes: 0 additions & 825 deletions 2006.html

This file was deleted.

1 change: 1 addition & 0 deletions 2006/20cent-vincent-valentin.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://20cent.net/">20cent (Vincent VALENTIN)</a>
1 change: 1 addition & 0 deletions 2006/350-designs-yura.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://www.350designs.com/">350 Designs (Yura)</a>
1 change: 1 addition & 0 deletions 2006/51-times.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://51times.tv/">51 Times</a>
1 change: 1 addition & 0 deletions 2006/52-tease-darren.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://www.52tease.com/">52 Tease (Darren)</a>
1 change: 1 addition & 0 deletions 2006/aaron-barker.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://www.zelph.com/">Aaron Barker</a>
1 change: 1 addition & 0 deletions 2006/aaron-gustafson.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://www.easy-reader.net/">Aaron Gustafson</a>
1 change: 1 addition & 0 deletions 2006/aaron.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://www.beatledork.com/">Aaron</a>
1 change: 1 addition & 0 deletions 2006/aban.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://www.aban.info/">Aban</a>
1 change: 1 addition & 0 deletions 2006/abdelrahman-osama.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://www.point-studios.com/">Abdelrahman Osama</a>
1 change: 1 addition & 0 deletions 2006/accesible.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://www.accesible.com.ar/">Accesible</a>
1 change: 1 addition & 0 deletions 2006/accessify-ian-lloyd.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://accessify.com/">Accessify (Ian Lloyd)</a>
1 change: 1 addition & 0 deletions 2006/acid-smile.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://acidsmile.co.uk/">Acid Smile</a>
1 change: 1 addition & 0 deletions 2006/adame.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://adame.pfwh.net/">Adame</a>
1 change: 1 addition & 0 deletions 2006/addi.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://www.rocktreesky.com/">Addi</a>
1 change: 1 addition & 0 deletions 2006/adham-somantrie.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://www.adhamsomantrie.com/">Adham Somantrie</a>
1 change: 1 addition & 0 deletions 2006/adrian.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://adrian.web.id/">Adrian</a>
1 change: 1 addition & 0 deletions 2006/adrian_1.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://www.sirharris.com/">Adrian</a>
1 change: 1 addition & 0 deletions 2006/adriano-melo.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://adrianomelo.com/">Adriano Melo</a>
1 change: 1 addition & 0 deletions 2006/agung.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://blog.agung.or.id/">Agung</a>
1 change: 1 addition & 0 deletions 2006/ahste.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://www.ahste.com/">Ahste</a>
1 change: 1 addition & 0 deletions 2006/aja.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="https://www.ajalapus.com/">Aja</a>
1 change: 1 addition & 0 deletions 2006/akella.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://cssing.org.ua/">Akella</a>
1 change: 1 addition & 0 deletions 2006/alex-burr.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://www.alexburr.com/">Alex Burr</a>
1 change: 1 addition & 0 deletions 2006/alex-saueressig.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://www.arvoresdeirati.com/">Alex Saueressig</a>
1 change: 1 addition & 0 deletions 2006/alex.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://poolie.kulando.de/">Alex</a>
1 change: 1 addition & 0 deletions 2006/alex_1.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://www.rhapsodyinfilth.com/">Alex</a>
1 change: 1 addition & 0 deletions 2006/alexander-vasarab.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://www.teamcloud9.net/">Alexander Vasarab</a>
1 change: 1 addition & 0 deletions 2006/alexey-feldgendler.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://feldgendler.livejournal.com/">Alexey Feldgendler</a>
1 change: 1 addition & 0 deletions 2006/alian.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://alian.info/">Alian</a>
1 change: 1 addition & 0 deletions 2006/allan-haggett.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://journal.allanh.org/">Allan Haggett</a>
1 change: 1 addition & 0 deletions 2006/amy-park.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://amysoul.com/blog/">Amy Park</a>
1 change: 1 addition & 0 deletions 2006/and-all-that-malarkey-andy-clarke.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://www.stuffandnonsense.co.uk/">And all that Malarkey (Andy Clarke)</a>
1 change: 1 addition & 0 deletions 2006/anders-pollas.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://pollas.dk/">Anders Pollas</a>
1 change: 1 addition & 0 deletions 2006/andrea.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://www.andreagandino.com/">Andrea</a>
1 change: 1 addition & 0 deletions 2006/andreas-harder.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://www.bezirksjugend.de/">Andreas Harder</a>
1 change: 1 addition & 0 deletions 2006/andreas.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://www.exscale.se/">Andreas</a>
1 change: 1 addition & 0 deletions 2006/andrew-bossom.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://www.rewboss.com/">Andrew Bossom</a>
1 change: 1 addition & 0 deletions 2006/andrew-ferguson.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://www.andrewferguson.net/">Andrew Ferguson</a>
1 change: 1 addition & 0 deletions 2006/andrew-urquhart.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://andrewu.co.uk/">Andrew Urquhart</a>
1 change: 1 addition & 0 deletions 2006/andrius-mazeika.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://www.mazeika.org/">Andrius Mazeika</a>
1 change: 1 addition & 0 deletions 2006/andry.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://andryshuzain.com/">Andry</a>
1 change: 1 addition & 0 deletions 2006/andy-dingley.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://codesmiths.com/shed/">Andy Dingley</a>
1 change: 1 addition & 0 deletions 2006/andy-ford.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://analogpanda.com/">Andy Ford</a>
1 change: 1 addition & 0 deletions 2006/andy.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://www.moddular.org/log/">Andy</a>
1 change: 1 addition & 0 deletions 2006/angelsea-saby.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://www.desabya.com/">Angelsea Saby</a>
1 change: 1 addition & 0 deletions 2006/anieto-2k.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://www.anieto2k.com/">aNieto 2k</a>
1 change: 1 addition & 0 deletions 2006/anish.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://www.designgala.com/">Anish</a>
1 change: 1 addition & 0 deletions 2006/anthony-ettinger.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://www.chovy.com/">Anthony Ettinger</a>
1 change: 1 addition & 0 deletions 2006/antonio.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://www.mundoplus.tv/">Antonio</a>
1 change: 1 addition & 0 deletions 2006/aoao.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://www.rotui.net/">Aoao</a>
1 change: 1 addition & 0 deletions 2006/april.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://www.bungalow104.com/">April</a>
1 change: 1 addition & 0 deletions 2006/aqueos.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://aqueos.blogspot.com/">Aqueos</a>
1 change: 1 addition & 0 deletions 2006/ara-pehlivanian.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://arapehlivanian.com/">Ara Pehlivanian</a>
1 change: 1 addition & 0 deletions 2006/arisstotle.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://amindsedge.blogspot.com/">ArissTotle</a>
1 change: 1 addition & 0 deletions 2006/arm-chair-geek.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://blog.armchairgeek.com/">Arm Chair Geek</a>
1 change: 1 addition & 0 deletions 2006/armit.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://www.aboutwebdesigning.com/">Armit</a>
1 change: 1 addition & 0 deletions 2006/arnodmental.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://demental.info/blog/">Arnod'mental</a>
1 change: 1 addition & 0 deletions 2006/arthaey-angosii.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://www.arthaey.com/">Arthaey Angosii</a>
1 change: 1 addition & 0 deletions 2006/artxtra.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://artxtra.info/">Artxtra</a>
1 change: 1 addition & 0 deletions 2006/ashley-it.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://www.ashleyit.com/">Ashley It</a>
1 change: 1 addition & 0 deletions 2006/atech.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://attila.antals.org/">Atech</a>
1 change: 1 addition & 0 deletions 2006/atnexxt.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://www.atnexxt.de/">Atnexxt</a>
1 change: 1 addition & 0 deletions 2006/audio-freak9.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://www20.brinkster.com/audiofreak9/default.html">Audio Freak9</a>
1 change: 1 addition & 0 deletions 2006/aurelian.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://locknet.ro/">Aurelian</a>
1 change: 1 addition & 0 deletions 2006/babozor.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://www.babozor.com/">Babozor</a>
1 change: 1 addition & 0 deletions 2006/bahnh-of-strasse.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://bahnhofstrasse14.info/">Bahnh of Strasse</a>
1 change: 1 addition & 0 deletions 2006/baldo.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://www.sanbaldo.com/">Baldo</a>
1 change: 1 addition & 0 deletions 2006/bart.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://bartart.thischick.com/">Bart</a>
1 change: 1 addition & 0 deletions 2006/bartini.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://bartini.jogger.pl/">Bartini</a>
1 change: 1 addition & 0 deletions 2006/bartosz.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://lostinusa.net/">Bartosz</a>
1 change: 1 addition & 0 deletions 2006/barwus.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://barwus.jogger.pl/">Barwus</a>
1 change: 1 addition & 0 deletions 2006/bcseeati.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://blog.bcse.info/">BCSEEATI</a>
1 change: 1 addition & 0 deletions 2006/becky.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://www.babblative.com/">Becky</a>
1 change: 1 addition & 0 deletions 2006/ben-eastaugh.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://ionfish.co.uk/">Ben Eastaugh</a>
1 change: 1 addition & 0 deletions 2006/ben-stucki.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://blog.benstucki.net/">Ben Stucki</a>
1 change: 1 addition & 0 deletions 2006/ben-yancer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://benyancer.blogspot.com/">Ben Yancer</a>
1 change: 1 addition & 0 deletions 2006/bernie-zimmermann.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://www.bernzilla.com/">Bernie Zimmermann</a>
1 change: 1 addition & 0 deletions 2006/beta-flow-michael-wales.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://www.betaflow.com/">Beta Flow (Michael Wales)</a>
1 change: 1 addition & 0 deletions 2006/bhavana-rehani.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://andrew.cmu.edu/user/brehani/">Bhavana Rehani</a>
1 change: 1 addition & 0 deletions 2006/big-dog.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://www.bigpawsonly.com/">Big Dog</a>
1 change: 1 addition & 0 deletions 2006/bill-cole.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://donutage.org/">Bill Cole</a>
1 change: 1 addition & 0 deletions 2006/binny.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://www.bin-co.com/">Binny</a>
1 change: 1 addition & 0 deletions 2006/blid.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://blid.jogger.pl/">Blid</a>
1 change: 1 addition & 0 deletions 2006/blogs-now-andreas-wacker.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://www.blogsnow.com/">Blogs Now (Andreas Wacker)</a>
1 change: 1 addition & 0 deletions 2006/blogtellas.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://blogtellas.blogspot.com/">Blogtellas</a>
1 change: 1 addition & 0 deletions 2006/bloody-scotsmen-twizlar.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://vwar.bloody-scotsmen.com/">Bloody Scotsmen (Twizlar)</a>
1 change: 1 addition & 0 deletions 2006/boggle-the-mind-jeff-l.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://www.bogglethemind.com/">Boggle the mind (Jeff L)</a>
1 change: 1 addition & 0 deletions 2006/bonita-in-pink.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://www.bonitainpink.com/">Bonita in Pink</a>
1 change: 1 addition & 0 deletions 2006/boris.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://www.dyingeyes.de/">Boris</a>
1 change: 1 addition & 0 deletions 2006/bowo-ekowiodo.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://www12.brinkster.com/indocel/default.asp">Bowo Ekowiodo</a>
1 change: 1 addition & 0 deletions 2006/box-of-chocolates-derek-featherstone.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://www.boxofchocolates.ca/">Box of Chocolates (Derek Featherstone)</a>
1 change: 1 addition & 0 deletions 2006/brajeshwar.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://www.brajeshwar.com/">Brajeshwar</a>
1 change: 1 addition & 0 deletions 2006/brand-spanking-new.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://www.brandspankingnew.net/">Brand Spanking New</a>
1 change: 1 addition & 0 deletions 2006/brant.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://brantwinter.id.au/">Brant</a>
1 change: 1 addition & 0 deletions 2006/brendan.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://incoherently.net/">Brendan</a>
1 change: 1 addition & 0 deletions 2006/brent-ashley.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="http://www.ashleyit.com/blogs/brentashley">Brent Ashley</a>
Loading