This repository has been archived by the owner on Jan 6, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 203
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2e20088
commit 0bc1dd2
Showing
83 changed files
with
30,696 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
>0.25%, not ie 11, not op_mini all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
module.exports = eleventyConfig => { | ||
eleventyConfig.addPassthroughCopy('src/images'); | ||
eleventyConfig.addPassthroughCopy('src/fonts'); | ||
|
||
// Helpers: 11ty Universal Shortcode | ||
eleventyConfig.addShortcode("toLowerCase", function(str) { | ||
return str.toLowerCase(); | ||
}); | ||
|
||
eleventyConfig.addShortcode("formatDate", function(datetime) { | ||
var datetime = new Date(datetime); | ||
var options = { year: 'numeric', month: 'long', day: 'numeric' }; | ||
return datetime.toLocaleDateString("en-US", options); | ||
}); | ||
|
||
eleventyConfig.addShortcode("json", function(context) { | ||
return JSON.stringify(context, null, 4); | ||
}); | ||
|
||
eleventyConfig.addShortcode("isNew", function(datetime, options) { | ||
var d1 = new Date(datetime); | ||
var d2 = new Date(); | ||
d2.setDate(d2.getDate() - 30); // in the last 30 days | ||
return (d1.getTime() > d2.getTime()) ? options.fn(this) : options.inverse(this); | ||
}); | ||
|
||
eleventyConfig.addShortcode("encodeURI", function(str) { | ||
return encodeURIComponent(str); | ||
}); | ||
|
||
return { | ||
dir: { input: 'src', output: 'dist', data: '_data' }, | ||
passthroughFileCopy: true, | ||
templateFormats: ['hbs', 'md', 'css', 'html', 'yml'], | ||
htmlTemplateEngine: 'hbs' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.DS_Store | ||
node_modules | ||
dist | ||
.cache | ||
.data-cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"port": 4000, | ||
"serve": "dist", | ||
"bind": "localhost", | ||
"delay": 100, | ||
"quiet": true, | ||
"watchexps": [ | ||
"src/scripts/**/*.js # npm run scripts:dev", | ||
"src/styles/**/*.scss # npm run styles:dev # reloadcss", | ||
"dist/**/*.html", | ||
"src/images/" | ||
], | ||
"http2": false, | ||
"open": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"htmlWhitespaceSensitivity": "ignore", | ||
"printWidth": 120, | ||
"overrides": [ | ||
{ | ||
"files": "*.liquid", | ||
"options": { | ||
"parser": "html" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# blog-template | ||
WIP — a simple SSG blog template that integrates with Directus | ||
|
||
Install | ||
`npm install` | ||
|
||
Development | ||
`npm run dev` | ||
|
||
Build | ||
`npm run build` |
Oops, something went wrong.