diff --git a/.eleventy.js b/.eleventy.js index b215a1e..dd5359d 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -2,7 +2,6 @@ const markdownIt = require('markdown-it') const mdla = require('markdown-it-link-attributes') module.exports = (config) => { - // markdown setup const mdOptions = { html: true, @@ -16,13 +15,12 @@ module.exports = (config) => { }, attrs: { rel: 'me', - target: '_blank' - } + target: '_blank', + }, }) - .disable("code") - - config.setLibrary("md", markdownLib) + .disable('code') + config.setLibrary('md', markdownLib) // add collection for pages config.addCollection('pages', (collection) => { @@ -46,24 +44,24 @@ module.exports = (config) => { }) // custom filters - config.addFilter("makeLowercase", (value) => { + config.addFilter('makeLowercase', (value) => { if (typeof value === 'string' || value instanceof String) { return value.toLowerCase() } }) // added passthrough for global assets - config.addPassthroughCopy("assets") + config.addPassthroughCopy('assets') // added passthrough for images in their respective folders - config.addPassthroughCopy("_content/**/images/**") + config.addPassthroughCopy('_content/**/images/**') // reutrn updated config return { dir: { - input: "_content", // content - includes: "../_includes", // templates - output: "_site", // rendered site - data: "../_data" // global data files - } + input: '_content', // content + includes: '../_includes', // templates + output: '_site', // rendered site + data: '../_data', // global data files + }, } } diff --git a/.eslintrc.json b/.eslintrc.json index 8940d7b..de43e0b 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,36 +1,72 @@ { - "env": { - "browser": true, - "commonjs": true, - "es2021": false, - "node": true - }, - "extends": "eslint:recommended", - "parserOptions": { - "ecmaVersion": "latest" - }, - "rules": { - "no-var": "error", - "semi": ["error", "never"], - "quotes": ["error", "single"], - "indent": ["error", 2], - "arrow-spacing": "error", - "array-bracket-spacing": ["error", "always"], - "array-bracket-newline": ["error", "consistent"], - "object-curly-spacing": ["error", "always"], - "object-curly-newline": ["error", { "consistent": true }], - "space-before-blocks": ["error", "always"] - }, - "overrides": [ + "env": { + "browser": true, + "commonjs": true, + "es2021": false, + "node": true + }, + "extends": "eslint:recommended", + "parserOptions": { + "ecmaVersion": "latest" + }, + "rules": { + "no-var": "error", + "semi": [ + "error", + "never" + ], + "quotes": [ + "error", + "single" + ], + "indent": [ + "error", + 2 + ], + "arrow-spacing": "error", + "array-bracket-spacing": [ + "error", + "always" + ], + "array-bracket-newline": [ + "error", + "consistent" + ], + "object-curly-spacing": [ + "error", + "always" + ], + "object-curly-newline": [ + "error", { - "files": ["./assets/**/*.js"], - "env": { - "commonjs": false, - "node": false - }, - "parserOptions": { - "sourceType": "module" - } + "consistent": true + } + ], + "space-before-blocks": [ + "error", + "always" + ], + "array-bracket-spacing": [ + "error", + "always", + { + "objectsInArrays": "false", + "arraysInArrays": "false" } ] + }, + "overrides": [ + { + "files": [ + "./assets/**/*.js" + ], + "env": { + "commonjs": false, + "node": false + }, + "parserOptions": { + "sourceType": "module" + } + } + ] } diff --git a/_data/siteSettings.json b/_data/siteSettings.json deleted file mode 100644 index 7576f02..0000000 --- a/_data/siteSettings.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "siteName" : "wrk.suroh", - "categories": [ - "work", - "audio", - "other" - ] -} \ No newline at end of file diff --git a/_includes/base.njk b/_includes/base.njk index ce62c30..0cd7d3f 100644 --- a/_includes/base.njk +++ b/_includes/base.njk @@ -7,6 +7,9 @@ {{ siteSettings.siteName }} + + +