Skip to content
Merged
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Deploy Eleventy site to GitHub Pages

on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: pages
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 24
cache: npm

- name: Install dependencies
run: npm ci

- name: Build site
run: npm run build

- name: Configure GitHub Pages
if: github.event_name != 'pull_request'
uses: actions/configure-pages@v5

- name: Upload site artifact
if: github.event_name != 'pull_request'
uses: actions/upload-pages-artifact@v3
with:
path: _site

deploy:
if: github.event_name != 'pull_request'
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@v4
6 changes: 2 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
_site
_drafts
.sass-cache
_site/
node_modules/
Thumbs.db
Desktop.ini
.DS_Store
.jekyll-metadata
3 changes: 0 additions & 3 deletions Gemfile

This file was deleted.

236 changes: 0 additions & 236 deletions Gemfile.lock

This file was deleted.

29 changes: 25 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,30 @@
# karelz.github.io

Source code for https://karelz.github.io. Rendered via Jekyll, hosted by GitHub pages.
Source for [karelz.github.io](https://karelz.github.io), built with
[Eleventy](https://www.11ty.dev/) and hosted on GitHub Pages.

See a problem? Please leave a comment, open an issue, or just submit a pull request :)
## Edit content

## Credits
Pages are Markdown files in `src/`. Shared page markup is in
`src/_includes/layouts/base.njk`, and the site styles are in
`src/assets/site.css`.

Inspired by https://github.com/NickCraver/nickcraver.github.com (with Nick's permission to take his CSS/HTML layout)
## Preview locally

```powershell
npm install
npm run dev
```

Open <http://localhost:8080>. Eleventy reloads the browser after content or
style changes.

## Build

```powershell
npm ci
npm run build
```

The generated site is written to `_site/`. Pushes to `master` are deployed by
the GitHub Pages workflow in `.github/workflows/pages.yml`.
25 changes: 0 additions & 25 deletions _config.yml

This file was deleted.

6 changes: 0 additions & 6 deletions _includes/analytics.html

This file was deleted.

Loading
Loading