From 50796e16eb07c6c7296dda4d8fff8edc8fc4785c Mon Sep 17 00:00:00 2001 From: Nicholas Lamicela Date: Wed, 5 Feb 2025 19:53:45 -0800 Subject: [PATCH] add ejs, p, gameboymode --- content/p/gameboymode.md | 29 +++++++++ content/p/index.md | 10 +++ eleventy.config.js | 6 +- package-lock.json | 137 +++++++++++++++++++++++++++++++++++++++ package.json | 1 + 5 files changed, 182 insertions(+), 1 deletion(-) create mode 100644 content/p/gameboymode.md create mode 100644 content/p/index.md diff --git a/content/p/gameboymode.md b/content/p/gameboymode.md new file mode 100644 index 0000000..2373408 --- /dev/null +++ b/content/p/gameboymode.md @@ -0,0 +1,29 @@ +--- +layout: base.njk +title: gameboymode +--- +# {{ title }} + +did you know that the 8bitdo Zero Two is just the right size to use as a gameboy? this thing is tiny but you can strap it to the front of your phone with two rubber bands and hey you've got a gameboy. + +except instead of two rubber bands im using this 3d printed jig thanks to (insert creator name) on thingiverse! wow! its held on by a rubber band. + +for the software, i am using retroarch for android. i changed the menu theme to 'rgui' which is designed for small screens, and conveniently defaults to taking up just the top half of the screen, so it works perfect for this setup. + +for added immersion i tried all the shaders and the best one is (insert name here, I think it was dot-matrix-dmg). + +games this thing runs: i mean, _all of them_, it's an emulator. but the ones I've enjoyed the most are + +- Tetris (gb) +- Pokemon Pinball (gb) +- Pokemon Puzzle Challenge (gbc) +- Game and Watch Gallery 4: Modern Chef (gba) +- Pokemon: Too Many Types (gba) +- WarioWare: Mega Microgame$ (gba) + +## to do + +- check name of shader +- take pictures +- upload pictures +- add links: 8bitdo, retroarch, thingiverse diff --git a/content/p/index.md b/content/p/index.md new file mode 100644 index 0000000..b3053d1 --- /dev/null +++ b/content/p/index.md @@ -0,0 +1,10 @@ +--- +layout: base.njk +title: p +templateEngineOverride: ejs,md +--- +# <% print(title) %> + +the p stands for "pile". or "project". but mostly pile. + +- [gameboymode](gameboymode) diff --git a/eleventy.config.js b/eleventy.config.js index 8d8a309..712fdd0 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -1,6 +1,7 @@ -import pluginSyntaxHighlight from "@11ty/eleventy-plugin-syntaxhighlight"; import { EleventyHtmlBasePlugin } from "@11ty/eleventy"; +import pluginEjs from '@11ty/eleventy-plugin-ejs'; import pluginRss from '@11ty/eleventy-plugin-rss'; +import pluginSyntaxHighlight from "@11ty/eleventy-plugin-syntaxhighlight"; import { JSDOM } from 'jsdom'; import { DateTime } from "luxon"; import markdownItAnchor from 'markdown-it-anchor'; @@ -41,6 +42,9 @@ export default function(eleventyConfig) { }); eleventyConfig.addPlugin(EleventyHtmlBasePlugin); eleventyConfig.addPlugin(pluginRss); + eleventyConfig.addPlugin(pluginEjs, { + outputFunctionName: 'print', + }); // Filters eleventyConfig.addFilter("readableDate", (dateObj, format, zone) => { diff --git a/package-lock.json b/package-lock.json index d3a6ad8..451ce55 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,6 +10,7 @@ "license": "MIT", "dependencies": { "@11ty/eleventy": "^3.0.0", + "@11ty/eleventy-plugin-ejs": "^1.0.0", "@11ty/eleventy-plugin-rss": "^2.0.2", "@11ty/eleventy-plugin-syntaxhighlight": "^5.0.0", "cross-env": "^7.0.3", @@ -145,6 +146,21 @@ "url": "https://opencollective.com/11ty" } }, + "node_modules/@11ty/eleventy-plugin-ejs": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@11ty/eleventy-plugin-ejs/-/eleventy-plugin-ejs-1.0.0.tgz", + "integrity": "sha512-em6B3Has/KwTu5orm5hGWvecZCgFLOuT2jyzGnNXLf36iy9oX7Gqlkio7GpTBLZWs5AxuwukWGCzMHj8qAT7Cg==", + "dependencies": { + "ejs": "^3.1.10" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/11ty" + } + }, "node_modules/@11ty/eleventy-plugin-rss": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/@11ty/eleventy-plugin-rss/-/eleventy-plugin-rss-2.0.2.tgz", @@ -967,6 +983,12 @@ "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", "integrity": "sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==" }, + "node_modules/async": { + "version": "3.2.6", + "resolved": "https://registry.npmjs.org/async/-/async-3.2.6.tgz", + "integrity": "sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==", + "license": "MIT" + }, "node_modules/asynckit": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", @@ -1079,6 +1101,37 @@ "node": ">= 0.4" } }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/chalk/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, "node_modules/chardet": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/chardet/-/chardet-2.0.0.tgz", @@ -1428,6 +1481,21 @@ "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==", "license": "MIT" }, + "node_modules/ejs": { + "version": "3.1.10", + "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.10.tgz", + "integrity": "sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA==", + "license": "Apache-2.0", + "dependencies": { + "jake": "^10.8.5" + }, + "bin": { + "ejs": "bin/cli.js" + }, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/emoji-regex": { "version": "9.2.2", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", @@ -1587,6 +1655,36 @@ "reusify": "^1.0.4" } }, + "node_modules/filelist": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.4.tgz", + "integrity": "sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==", + "license": "Apache-2.0", + "dependencies": { + "minimatch": "^5.0.1" + } + }, + "node_modules/filelist/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/filelist/node_modules/minimatch": { + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", + "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/filesize": { "version": "10.1.6", "resolved": "https://registry.npmjs.org/filesize/-/filesize-10.1.6.tgz", @@ -1768,6 +1866,15 @@ "node": ">=6.0" } }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, "node_modules/has-property-descriptors": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", @@ -2039,6 +2146,24 @@ "@pkgjs/parseargs": "^0.11.0" } }, + "node_modules/jake": { + "version": "10.9.2", + "resolved": "https://registry.npmjs.org/jake/-/jake-10.9.2.tgz", + "integrity": "sha512-2P4SQ0HrLQ+fw6llpLnOaGAvN2Zu6778SJMrCUwns4fOoG9ayrTiZk3VV8sCPkVZF8ab0zksVpS8FDY5pRCNBA==", + "license": "Apache-2.0", + "dependencies": { + "async": "^3.2.3", + "chalk": "^4.0.2", + "filelist": "^1.0.4", + "minimatch": "^3.1.2" + }, + "bin": { + "jake": "bin/cli.js" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/js-yaml": { "version": "3.14.1", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", @@ -3029,6 +3154,18 @@ "node": ">=0.10.0" } }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/symbol-tree": { "version": "3.2.4", "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", diff --git a/package.json b/package.json index d545710..7f0a6fe 100644 --- a/package.json +++ b/package.json @@ -35,6 +35,7 @@ "homepage": "https://github.com/11ty/eleventy-base-blog#readme", "dependencies": { "@11ty/eleventy": "^3.0.0", + "@11ty/eleventy-plugin-ejs": "^1.0.0", "@11ty/eleventy-plugin-rss": "^2.0.2", "@11ty/eleventy-plugin-syntaxhighlight": "^5.0.0", "cross-env": "^7.0.3",