Skip to content

Commit c535daa

Browse files
committed
Added hidden files
1 parent 3a874eb commit c535daa

7 files changed

Lines changed: 89 additions & 0 deletions

File tree

‎.eleventy.js‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
const { DateTime } = require('luxon')
2+
const navigationPlugin = require('@11ty/eleventy-navigation')
3+
const rssPlugin = require('@11ty/eleventy-plugin-rss')
4+
5+
6+
7+
8+
module.exports = (config) => {
9+
config.addPlugin(navigationPlugin);
10+
config.addPlugin(rssPlugin);
11+
12+
config.addPassthroughCopy('css');
13+
config.addPassthroughCopy('static');
14+
15+
config.setDataDeepMerge(true);
16+
17+
config.addFilter('htmlDateString', (dateObj) => {
18+
return DateTime.fromJSDate(dateObj, {zone: 'utc'}).toFormat('yyyy-LL-dd');
19+
});
20+
21+
config.addFilter("readableDate", dateObj => {
22+
return DateTime.fromJSDate(dateObj, {zone: 'utc'}).toFormat("dd LLL, yyyy");
23+
});
24+
25+
26+
}

‎.eleventyignore‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
README.md
2+
LICENSE

‎.github/dependabot.yml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "npm"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"

‎.github/workflows/build.yml‎

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Build Eleventy
2+
on:
3+
push:
4+
branches:
5+
- main
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-20.04
10+
11+
strategy:
12+
matrix:
13+
node-version: [12.x]
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
18+
- name: Use Node.js ${{ matrix.node-version }}
19+
uses: actions/setup-node@v1
20+
with:
21+
node-version: ${{ matrix.node-version }}
22+
23+
- name: Install dependencies & build
24+
run: |
25+
npm ci
26+
npm run build
27+
- name: Deploy
28+
uses: peaceiris/actions-gh-pages@v3.8.0
29+
with:
30+
github_token: ${{ secrets.GITHUB_TOKEN }}
31+
#publish_dir is the folder on the docker instance which eleventy builds the pages to.
32+
#it is not the docs folder in the repository
33+
publish_dir: _site
34+
#publish_branch is the branch in the repository.
35+
#this is where you need to point GitHub pages
36+
publish_branch: gh-pages

‎.gitignore‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
.vscode
3+
_site

‎.nojekyll‎

Whitespace-only changes.

‎.travis.yml‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
language: node_js
2+
dist: focal
3+
node_js:
4+
- 18
5+
before_script:
6+
- npm install
7+
script: npm run build:stylus && eleventy --pathprefix=eleventy-stylus-blog-theme
8+
deploy:
9+
local-dir: _site
10+
provider: pages
11+
skip-cleanup: true
12+
github-token: $GITHUB_TOKEN
13+
keep-history: true
14+
target_branch: gh-pages
15+
on:
16+
branch: main

0 commit comments

Comments
 (0)