Skip to content

Commit

Permalink
Switch to Eleventy and rebuild site (#1)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
ButterscotchV authored Nov 18, 2024
1 parent 74d2ec4 commit 48a911e
Show file tree
Hide file tree
Showing 70 changed files with 4,003 additions and 1,099 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
Expand Down
File renamed without changes.
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
# Check for updates to GitHub Actions every week
interval: "weekly"
63 changes: 63 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: GitHub Pages

on:
push:
branches:
- main
pull_request:
workflow_dispatch:

jobs:
build:
name: Build website
runs-on: ubuntu-latest

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-build

steps:
- uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
cache: "npm"
node-version: "lts/*"

- name: Cache Eleventy .cache
uses: actions/cache@v4
with:
path: ./.cache
key: ${{ runner.os }}-eleventy-fetch-cache

- run: npm ci
- run: npm run build

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
if: github.ref == 'refs/heads/main'
with:
path: ./_site

deploy:
if: github.ref == 'refs/heads/main'

name: Deploy website to GitHub Pages
needs: build
runs-on: ubuntu-latest

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-deploy

permissions:
contents: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4
id: deployment
14 changes: 2 additions & 12 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
# Created by https://www.toptal.com/developers/gitignore/api/jekyll
# Edit at https://www.toptal.com/developers/gitignore?templates=jekyll

### Jekyll ###
_site/
.sass-cache/
.jekyll-cache/
.jekyll-metadata
# Ignore folders generated by Bundler
.bundle/
vendor/

# End of https://www.toptal.com/developers/gitignore/api/jekyll
node_modules/
.cache
27 changes: 0 additions & 27 deletions 404.html

This file was deleted.

38 changes: 0 additions & 38 deletions Gemfile

This file was deleted.

Loading

0 comments on commit 48a911e

Please sign in to comment.