diff --git a/.eslintrc b/.eslintrc deleted file mode 100644 index 73c1da2..0000000 --- a/.eslintrc +++ /dev/null @@ -1,167 +0,0 @@ -{ - "parserOptions": { - "ecmaVersion": 8, - "ecmaFeatures": { - "experimentalObjectRestSpread": true, - "jsx": true - }, - "sourceType": "module" - }, - - "env": { - "es6": true, - "node": true, - "browser": true - }, - - "plugins": [ - "standard", - "promise" - ], - - "globals": { - "Transifex": false, - "$": false, - "_": false, - "Marionette": false, - "Backbone": false, - "moment": false, - "document": false, - "navigator": false, - "window": false - }, - - "rules": { - "accessor-pairs": 2, - "arrow-spacing": [2, { "before": true, "after": true }], - "block-spacing": [2, "always"], - "brace-style": [2, "1tbs", { "allowSingleLine": true }], - "comma-dangle": ["error", { - "arrays": "never", - "objects": "always-multiline", - "imports": "never", - "exports": "never", - "functions": "never", - }], - "comma-spacing": [2, { "before": false, "after": true }], - "comma-style": [2, "last"], - "constructor-super": 2, - "curly": [2, "multi-line"], - "dot-location": [2, "object"], - "eol-last": 2, - "func-call-spacing": [2, "never"], - "handle-callback-err": [2, "^(err|error)$" ], - "indent": [2, 2, { "SwitchCase": 1, "VariableDeclarator": 2 }], - "key-spacing": [2, { "beforeColon": false, "afterColon": true }], - "keyword-spacing": [2, { "before": true, "after": true }], - "new-cap": [2, { "newIsCap": true, "capIsNew": false }], - "new-parens": 2, - "no-array-constructor": 2, - "no-caller": 2, - "no-class-assign": 2, - "no-cond-assign": 2, - "no-const-assign": 2, - "no-constant-condition": [2, { "checkLoops": false }], - "no-control-regex": 2, - "no-debugger": 2, - "no-delete-var": 2, - "no-dupe-args": 2, - "no-dupe-class-members": 2, - "no-dupe-keys": 2, - "no-duplicate-case": 2, - "no-duplicate-imports": 2, - "no-empty-character-class": 2, - "no-empty-pattern": 2, - "no-eval": 2, - "no-ex-assign": 2, - "no-extend-native": 2, - "no-extra-bind": 2, - "no-extra-boolean-cast": 2, - "no-extra-parens": [2, "functions"], - "no-fallthrough": 2, - "no-floating-decimal": 2, - "no-func-assign": 2, - "no-global-assign": 2, - "no-implied-eval": 2, - "no-inner-declarations": [2, "functions"], - "no-invalid-regexp": 2, - "no-irregular-whitespace": 2, - "no-iterator": 2, - "no-label-var": 2, - "no-labels": [2, { "allowLoop": false, "allowSwitch": false }], - "no-lone-blocks": 2, - "no-mixed-spaces-and-tabs": 2, - "no-multi-spaces": 2, - "no-multi-str": 2, - "no-multiple-empty-lines": [2, { "max": 1 }], - "no-native-reassign": 2, - "no-negated-in-lhs": 2, - "no-new": 2, - "no-new-func": 2, - "no-new-object": 2, - "no-new-require": 2, - "no-new-symbol": 2, - "no-new-wrappers": 2, - "no-obj-calls": 2, - "no-octal": 2, - "no-octal-escape": 2, - "no-path-concat": 2, - "no-proto": 2, - "no-redeclare": 2, - "no-regex-spaces": 2, - "no-return-assign": [2, "except-parens"], - "no-self-assign": 2, - "no-self-compare": 2, - "no-sequences": 2, - "no-shadow-restricted-names": 2, - "no-sparse-arrays": 2, - "no-tabs": 2, - "no-template-curly-in-string": 2, - "no-this-before-super": 2, - "no-throw-literal": 2, - "no-trailing-spaces": 2, - "no-undef": 2, - "no-undef-init": 2, - "no-unexpected-multiline": 2, - "no-unmodified-loop-condition": 2, - "no-unneeded-ternary": [2, { "defaultAssignment": false }], - "no-unreachable": 2, - "no-unsafe-finally": 2, - "no-unsafe-negation": 2, - "no-unused-vars": [2, { "vars": "all", "args": "none" }], - "no-useless-call": 2, - "no-useless-computed-key": 2, - "no-useless-constructor": 2, - "no-useless-escape": 2, - "no-useless-rename": 2, - "no-whitespace-before-property": 2, - "no-with": 2, - "object-property-newline": [2, { "allowMultiplePropertiesPerLine": true }], - "operator-linebreak": [2, "after", { "overrides": { "?": "before", ":": "before" } }], - "padded-blocks": [2, "never"], - "quotes": [2, "single", { "avoidEscape": true, "allowTemplateLiterals": true }], - "rest-spread-spacing": [2, "never"], - "semi": [2, "always"], - "semi-spacing": [2, { "before": false, "after": true }], - "space-before-blocks": [2, "always"], - "space-before-function-paren": [2, "never"], - "space-in-parens": [2, "never"], - "space-infix-ops": 2, - "space-unary-ops": [2, { "words": true, "nonwords": false }], - "spaced-comment": [2, "always", { "line": { "markers": ["*package", "!", ","] }, "block": { "balanced": true, "markers": ["*package", "!", ","], "exceptions": ["*"] } }], - "template-curly-spacing": [2, "never"], - "unicode-bom": [2, "never"], - "use-isnan": 2, - "valid-typeof": 2, - "wrap-iife": [2, "any", { "functionPrototypeMethods": true }], - "yield-star-spacing": [2, "both"], - "yoda": [2, "never"], - - "standard/object-curly-even-spacing": [2, "either"], - "standard/array-bracket-even-spacing": [2, "either"], - "standard/computed-property-even-spacing": [2, "even"], - - "promise/param-names": 2, - "max-len": [2, { "code": 79, "ignoreUrls": true, "ignoreStrings": true }], - } -} diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..80576ca --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,53 @@ +name: pages build and deployment + +on: + push: + branches: [master] + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: "pages" + cancel-in-progress: true + +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: "lts/*" + cache: "npm" + - name: Setup Pages + id: pages + uses: actions/configure-pages@v5 + - name: Setup WireIt caching + uses: google/wireit@setup-github-actions-caching/v2 + - name: Install dependencies + run: npm ci + - name: Build + env: + PAGES_BASE_URL: ${{ steps.pages.outputs.base_url }} + run: npm run build + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + needs: build + runs-on: ubuntu-latest + name: Deploy + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 diff --git a/404.html b/404.html index 6057e42..a91b076 100644 --- a/404.html +++ b/404.html @@ -2,13 +2,16 @@ layout: default title: "404: Page not found" permalink: 404.html +eleventyExcludeFromCollections: true ---
diff --git a/README.md b/README.md index a2f661f..79d9deb 100644 --- a/README.md +++ b/README.md @@ -5,12 +5,5 @@ This is the repository of my personal site codegaze.github.io I host in Github P ## History This repository started as a test to Github Pages, Jekyll and Poole. -After one month or so of use I decided its time to change the default theme/files of poole. - -## Installation ->In case of an emergency break glass - -``` -$ gem install Jekyll -$ npm install -``` +After one month or so of use I decided it's time to change the default theme/files of poole. +After 10 years or so of use I decided it's time to move to 11ty. diff --git a/_config.yml b/_config.yml deleted file mode 100644 index 9db6c7a..0000000 --- a/_config.yml +++ /dev/null @@ -1,26 +0,0 @@ -# Permalinks -# -# Use of `relative_permalinks` ensures post links from the index work properly. -# permalink: pretty -# relative_permalinks: true - -permalink: /:year/:month/:day/:title/ - -# Setup -title: CodegazeRants -tagline: Thanos Kolovos -url: https://codegazerants.com -# paginate: 1 -baseurl: "" - - -# We specify the directory for Jekyll so we can use @imports. -sass: - sass_dir: _sass - style: :compressed - - -exclude: ["_dev", - "gulpfile.js", - "node_modules", - "package.json"] diff --git a/_data/navigation.yml b/_data/navigation.yml deleted file mode 100644 index e69de29..0000000 diff --git a/_data/site.js b/_data/site.js new file mode 100644 index 0000000..e28d40a --- /dev/null +++ b/_data/site.js @@ -0,0 +1,12 @@ +export default { + url: "https://codegazerants.com/", + base_url: "", + author: { + name: "Thanos Kolovos", + email: "thanos@codegazerants.com", + }, + environment: process.env.NODE_ENV, + time: new Date(), + pubDate: new Date(2012, 10, 10), + title: "CodegazeRants", +}; diff --git a/_dev/assets/js/main.js b/_dev/assets/js/main.js deleted file mode 100644 index 766e705..0000000 --- a/_dev/assets/js/main.js +++ /dev/null @@ -1,35 +0,0 @@ -CG = window.CG || {}; - -CG = { - _init: function() - { - window.addEventListener('offline', function() { - CG.offlineStatus(); - }); - window.addEventListener('online', function() { - console.log('online'); - }); - }, - - offlineStatus: function() - { - this.showToast(); - var t = setTimeout(function() { - CG.hideToast(); - t = null; - }, 2000); - }, - - showToast: function() - { - document.getElementById('offline-status').classList.remove('is-hidden'); - }, - - hideToast: function() - { - document.getElementById('offline-status').classList.add('is-hidden'); - } - -} - -CG._init(); \ No newline at end of file diff --git a/_dev/assets/js/prism.js b/_dev/assets/js/prism.js deleted file mode 100644 index 9340c89..0000000 --- a/_dev/assets/js/prism.js +++ /dev/null @@ -1,13 +0,0 @@ -/* http://prismjs.com/download.html?themes=prism-okaidia&languages=markup+css+clike+javascript+ruby+git+markdown+php+scss+sql+yaml */ -var _self="undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{},Prism=function(){var e=/\blang(?:uage)?-(?!\*)(\w+)\b/i,t=_self.Prism={util:{encode:function(e){return e instanceof n?new n(e.type,t.util.encode(e.content),e.alias):"Array"===t.util.type(e)?e.map(t.util.encode):e.replace(/&/g,"&").replace(/e.length)break e;if(!(d instanceof a)){u.lastIndex=0;var m=u.exec(d);if(m){c&&(f=m[1].length);var y=m.index-1+f,m=m[0].slice(f),v=m.length,k=y+v,b=d.slice(0,y+1),w=d.slice(k+1),P=[p,1];b&&P.push(b);var A=new a(i,g?t.tokenize(m,g):m,h);P.push(A),w&&P.push(w),Array.prototype.splice.apply(r,P)}}}}}return r},hooks:{all:{},add:function(e,n){var a=t.hooks.all;a[e]=a[e]||[],a[e].push(n)},run:function(e,n){var a=t.hooks.all[e];if(a&&a.length)for(var r,l=0;r=a[l++];)r(n)}}},n=t.Token=function(e,t,n){this.type=e,this.content=t,this.alias=n};if(n.stringify=function(e,a,r){if("string"==typeof e)return e;if("Array"===t.util.type(e))return e.map(function(t){return n.stringify(t,a,e)}).join("");var l={type:e.type,content:n.stringify(e.content,a,r),tag:"span",classes:["token",e.type],attributes:{},language:a,parent:r};if("comment"==l.type&&(l.attributes.spellcheck="true"),e.alias){var i="Array"===t.util.type(e.alias)?e.alias:[e.alias];Array.prototype.push.apply(l.classes,i)}t.hooks.run("wrap",l);var o="";for(var s in l.attributes)o+=(o?" ":"")+s+'="'+(l.attributes[s]||"")+'"';return"<"+l.tag+' class="'+l.classes.join(" ")+'" '+o+">"+l.content+""+l.tag+">"},!_self.document)return _self.addEventListener?(_self.addEventListener("message",function(e){var n=JSON.parse(e.data),a=n.language,r=n.code,l=n.immediateClose;_self.postMessage(t.highlight(r,t.languages[a],a)),l&&_self.close()},!1),_self.Prism):_self.Prism;var a=document.getElementsByTagName("script");return a=a[a.length-1],a&&(t.filename=a.src,document.addEventListener&&!a.hasAttribute("data-manual")&&document.addEventListener("DOMContentLoaded",t.highlightAll)),_self.Prism}();"undefined"!=typeof module&&module.exports&&(module.exports=Prism),"undefined"!=typeof global&&(global.Prism=Prism); -Prism.languages.markup={comment://,prolog:/<\?[\w\W]+?\?>/,doctype://,cdata://i,tag:{pattern:/<\/?(?!\d)[^\s>\/=.$<]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\\1|\\?(?!\1)[\w\W])*\1|[^\s'">=]+))?)*\s*\/?>/i,inside:{tag:{pattern:/^<\/?[^\s>\/]+/i,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"attr-value":{pattern:/=(?:('|")[\w\W]*?(\1)|[^\s>]+)/i,inside:{punctuation:/[=>"']/}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:/?[\da-z]{1,8};/i},Prism.hooks.add("wrap",function(a){"entity"===a.type&&(a.attributes.title=a.content.replace(/&/,"&"))}),Prism.languages.xml=Prism.languages.markup,Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup; -Prism.languages.css={comment:/\/\*[\w\W]*?\*\//,atrule:{pattern:/@[\w-]+?.*?(;|(?=\s*\{))/i,inside:{rule:/@[\w-]+/}},url:/url\((?:(["'])(\\(?:\r\n|[\w\W])|(?!\1)[^\\\r\n])*\1|.*?)\)/i,selector:/[^\{\}\s][^\{\};]*?(?=\s*\{)/,string:/("|')(\\(?:\r\n|[\w\W])|(?!\1)[^\\\r\n])*\1/,property:/(\b|\B)[\w-]+(?=\s*:)/i,important:/\B!important\b/i,"function":/[-a-z0-9]+(?=\()/i,punctuation:/[(){};:]/},Prism.languages.css.atrule.inside.rest=Prism.util.clone(Prism.languages.css),Prism.languages.markup&&(Prism.languages.insertBefore("markup","tag",{style:{pattern:/( -