Skip to content

Commit 48a911e

Browse files
Switch to Eleventy and rebuild site (#1)
* Switch from Jekyll to Eleventy Still a lot of work left, but this is an initial "functional" version * Use assets folder better * Fix asset path * Use minified PhotoSwipe JS & load CSS from url * Remove unnecessary interaction hints * Delete old CSS files * Add Bulma * Add conditional style shortcode This is hacky af but it works so whatever * Minify HTML * Use Bulma formatting for content * Basic navigation * Make navigation a Bulma menu * Add PrismJS theme * Better menu spacing * Use page title for H1 * Update image formatting * Site clean-up * Add metadata & improve mobile UI * Fix LTS Node in GitHub Actions
1 parent 74d2ec4 commit 48a911e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+4003
-1099
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ root = true
55
[*]
66
charset = utf-8
77
end_of_line = lf
8-
indent_size = 2
8+
indent_size = 4
99
indent_style = space
1010
insert_final_newline = true
1111
trim_trailing_whitespace = true
File renamed without changes.

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
# Check for updates to GitHub Actions every week
7+
interval: "weekly"

.github/workflows/gh-pages.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
name: Build website
13+
runs-on: ubuntu-latest
14+
15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.ref }}-build
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- name: Setup Node
22+
uses: actions/setup-node@v4
23+
with:
24+
cache: "npm"
25+
node-version: "lts/*"
26+
27+
- name: Cache Eleventy .cache
28+
uses: actions/cache@v4
29+
with:
30+
path: ./.cache
31+
key: ${{ runner.os }}-eleventy-fetch-cache
32+
33+
- run: npm ci
34+
- run: npm run build
35+
36+
- name: Upload artifact
37+
uses: actions/upload-pages-artifact@v3
38+
if: github.ref == 'refs/heads/main'
39+
with:
40+
path: ./_site
41+
42+
deploy:
43+
if: github.ref == 'refs/heads/main'
44+
45+
name: Deploy website to GitHub Pages
46+
needs: build
47+
runs-on: ubuntu-latest
48+
49+
concurrency:
50+
group: ${{ github.workflow }}-${{ github.ref }}-deploy
51+
52+
permissions:
53+
contents: write
54+
id-token: write
55+
56+
environment:
57+
name: github-pages
58+
url: ${{ steps.deployment.outputs.page_url }}
59+
60+
steps:
61+
- name: Deploy to GitHub Pages
62+
uses: actions/deploy-pages@v4
63+
id: deployment

.gitignore

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
# Created by https://www.toptal.com/developers/gitignore/api/jekyll
2-
# Edit at https://www.toptal.com/developers/gitignore?templates=jekyll
3-
4-
### Jekyll ###
51
_site/
6-
.sass-cache/
7-
.jekyll-cache/
8-
.jekyll-metadata
9-
# Ignore folders generated by Bundler
10-
.bundle/
11-
vendor/
12-
13-
# End of https://www.toptal.com/developers/gitignore/api/jekyll
2+
node_modules/
3+
.cache

404.html

Lines changed: 0 additions & 27 deletions
This file was deleted.

Gemfile

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)