Skip to content

Commit

Permalink
migrate to 11ty
Browse files Browse the repository at this point in the history
  • Loading branch information
LickABrick committed Aug 22, 2024
1 parent 70ec8ca commit 9dad9af
Show file tree
Hide file tree
Showing 132 changed files with 5,227 additions and 13,887 deletions.
23 changes: 23 additions & 0 deletions .eleventy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
const syntaxHighlight = require("@11ty/eleventy-plugin-syntaxhighlight");
require('dotenv').config();

module.exports = function (eleventyConfig) {
eleventyConfig.addGlobalData('env', process.env.NODE_ENV);

eleventyConfig.addPassthroughCopy("src/assets/css/style.css");
eleventyConfig.addPassthroughCopy("src/assets/css/prism-theme.css");
eleventyConfig.addPassthroughCopy("src/assets/images");
eleventyConfig.addPassthroughCopy("src/assets/favicon");
eleventyConfig.addPassthroughCopy("src/assets/fonts/FiraCode-Regular.ttf");
eleventyConfig.addPlugin(syntaxHighlight, {
alwaysWrapLineHighlights: true,
});
return {
dir: {
input: "src",
data: "_data",
includes: "_includes",
layouts: "_layouts",
},
};
};
37 changes: 37 additions & 0 deletions .github/workflows/eleventy_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: build 11ty site

on:
push:
branches: ["main"]

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

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

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- name: Install dependencies & build
run: |
npm install
npx @11ty/eleventy
- uses: actions/upload-pages-artifact@v2

deploy:
runs-on: ubuntu-latest
needs: build
steps:
- id: deployment
uses: actions/deploy-pages@v2
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
78 changes: 0 additions & 78 deletions .github/workflows/hugo.yaml

This file was deleted.

4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/node_modules
/_site
.env
.DS_Store
Empty file removed .hugo_build.lock
Empty file.
1 change: 0 additions & 1 deletion README.md

This file was deleted.

6 changes: 0 additions & 6 deletions archetypes/default.md

This file was deleted.

91 changes: 0 additions & 91 deletions config.toml

This file was deleted.

44 changes: 0 additions & 44 deletions content/posts/my-first-post.md

This file was deleted.

91 changes: 0 additions & 91 deletions hugo.toml

This file was deleted.

3 changes: 0 additions & 3 deletions layouts/partials/comments.html

This file was deleted.

Loading

0 comments on commit 9dad9af

Please sign in to comment.