Skip to content

Commit 4a01e85

Browse files
authored
Merge pull request #15 from codegaze/migrate-to-11ty
Migrate to 11ty
2 parents cf68e8a + 13c2f58 commit 4a01e85

File tree

66 files changed

+3964
-4379
lines changed

Some content is hidden

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

66 files changed

+3964
-4379
lines changed

Diff for: .eslintrc

-167
This file was deleted.

Diff for: .github/workflows/deploy.yml

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: pages build and deployment
2+
3+
on:
4+
push:
5+
branches: [master]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: "pages"
15+
cancel-in-progress: true
16+
17+
jobs:
18+
build:
19+
name: Build
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
- name: Setup Node
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: "lts/*"
28+
cache: "npm"
29+
- name: Setup Pages
30+
id: pages
31+
uses: actions/configure-pages@v5
32+
- name: Setup WireIt caching
33+
uses: google/wireit@setup-github-actions-caching/v2
34+
- name: Install dependencies
35+
run: npm ci
36+
- name: Build
37+
env:
38+
PAGES_BASE_URL: ${{ steps.pages.outputs.base_url }}
39+
run: npm run build
40+
- name: Upload artifact
41+
uses: actions/upload-pages-artifact@v3
42+
43+
deploy:
44+
environment:
45+
name: github-pages
46+
url: ${{ steps.deployment.outputs.page_url }}
47+
needs: build
48+
runs-on: ubuntu-latest
49+
name: Deploy
50+
steps:
51+
- name: Deploy to GitHub Pages
52+
id: deployment
53+
uses: actions/deploy-pages@v4

Diff for: 404.html

+6-3
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@
22
layout: default
33
title: "404: Page not found"
44
permalink: 404.html
5+
eleventyExcludeFromCollections: true
56
---
67

78
<div class="page" style="text-align: center; padding: 30px 0">
89
<h1 class="page-title">Aw Snap!</h1>
9-
<p style="font-size:80px;">🤷‍♀️🤷‍♂️</p>
10+
<p style="font-size: 80px">🤷‍♀️🤷‍♂️</p>
1011
<p class="lead">
11-
No matches for this url!<br>
12-
Use <a href="{{ site.baseurl }}/">home</a> or <a href="{{ site.baseurl }}/writings/">writings</a> to find what you are looking for.
12+
No matches for this url!<br />
13+
Use <a href="{{ site.baseurl }}/">home</a> or
14+
<a href="{{ site.baseurl }}/writings/">writings</a> to find what you are
15+
looking for.
1316
</p>
1417
</div>

Diff for: README.md

+2-9
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,5 @@ This is the repository of my personal site codegaze.github.io I host in Github P
55
## History
66

77
This repository started as a test to Github Pages, Jekyll and Poole.
8-
After one month or so of use I decided its time to change the default theme/files of poole.
9-
10-
## Installation
11-
>In case of an emergency break glass
12-
13-
```
14-
$ gem install Jekyll
15-
$ npm install
16-
```
8+
After one month or so of use I decided it's time to change the default theme/files of poole.
9+
After 10 years or so of use I decided it's time to move to 11ty.

Diff for: _config.yml

-26
This file was deleted.

Diff for: _data/navigation.yml

Whitespace-only changes.

Diff for: _data/site.js

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
export default {
2+
url: "https://codegazerants.com",
3+
base_url: "",
4+
author: {
5+
name: "Thanos Kolovos",
6+
7+
},
8+
environment: process.env.NODE_ENV,
9+
time: new Date(),
10+
pubDate: new Date(2012, 10, 10),
11+
title: "CodegazeRants",
12+
};

Diff for: _dev/assets/js/main.js

-35
This file was deleted.

0 commit comments

Comments
 (0)