Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Commit

Permalink
Move external 8 projects to archive
Browse files Browse the repository at this point in the history
  • Loading branch information
rijkvanzanten committed Nov 18, 2020
1 parent 2e20088 commit 0bc1dd2
Show file tree
Hide file tree
Showing 83 changed files with 30,696 additions and 0 deletions.
1 change: 1 addition & 0 deletions blog-template/.browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
>0.25%, not ie 11, not op_mini all
12 changes: 12 additions & 0 deletions blog-template/.editorconfig
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
37 changes: 37 additions & 0 deletions blog-template/.eleventy.js
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'
}
}
5 changes: 5 additions & 0 deletions blog-template/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.DS_Store
node_modules
dist
.cache
.data-cache
15 changes: 15 additions & 0 deletions blog-template/.lightserverrc
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
}
1 change: 1 addition & 0 deletions blog-template/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
10
12 changes: 12 additions & 0 deletions blog-template/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"htmlWhitespaceSensitivity": "ignore",
"printWidth": 120,
"overrides": [
{
"files": "*.liquid",
"options": {
"parser": "html"
}
}
]
}
11 changes: 11 additions & 0 deletions blog-template/README.md
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`
Loading

0 comments on commit 0bc1dd2

Please sign in to comment.