Skip to content

Migrate to 11ty #15

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

Merged
merged 3 commits into from
Jan 4, 2025
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
167 changes: 0 additions & 167 deletions .eslintrc

This file was deleted.

53 changes: 53 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: pages build and deployment

on:
push:
branches: [master]
workflow_dispatch:

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

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

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "lts/*"
cache: "npm"
- name: Setup Pages
id: pages
uses: actions/configure-pages@v5
- name: Setup WireIt caching
uses: google/wireit@setup-github-actions-caching/v2
- name: Install dependencies
run: npm ci
- name: Build
env:
PAGES_BASE_URL: ${{ steps.pages.outputs.base_url }}
run: npm run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
runs-on: ubuntu-latest
name: Deploy
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
9 changes: 6 additions & 3 deletions 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@
layout: default
title: "404: Page not found"
permalink: 404.html
eleventyExcludeFromCollections: true
---

<div class="page" style="text-align: center; padding: 30px 0">
<h1 class="page-title">Aw Snap!</h1>
<p style="font-size:80px;">🤷‍♀️🤷‍♂️</p>
<p style="font-size: 80px">🤷‍♀️🤷‍♂️</p>
<p class="lead">
No matches for this url!<br>
Use <a href="{{ site.baseurl }}/">home</a> or <a href="{{ site.baseurl }}/writings/">writings</a> to find what you are looking for.
No matches for this url!<br />
Use <a href="{{ site.baseurl }}/">home</a> or
<a href="{{ site.baseurl }}/writings/">writings</a> to find what you are
looking for.
</p>
</div>
11 changes: 2 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,5 @@ This is the repository of my personal site codegaze.github.io I host in Github P
## History

This repository started as a test to Github Pages, Jekyll and Poole.
After one month or so of use I decided its time to change the default theme/files of poole.

## Installation
>In case of an emergency break glass

```
$ gem install Jekyll
$ npm install
```
After one month or so of use I decided it's time to change the default theme/files of poole.
After 10 years or so of use I decided it's time to move to 11ty.
26 changes: 0 additions & 26 deletions _config.yml

This file was deleted.

Empty file removed _data/navigation.yml
Empty file.
12 changes: 12 additions & 0 deletions _data/site.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
export default {
url: "https://codegazerants.com",
base_url: "",
author: {
name: "Thanos Kolovos",
email: "[email protected]",
},
environment: process.env.NODE_ENV,
time: new Date(),
pubDate: new Date(2012, 10, 10),
title: "CodegazeRants",
};
35 changes: 0 additions & 35 deletions _dev/assets/js/main.js

This file was deleted.

Loading