diff --git a/index.ts b/index.ts index 86ef6ad..21d7911 100644 --- a/index.ts +++ b/index.ts @@ -4,6 +4,7 @@ import Dev from "sssg/src/plugins/dev"; import TSCompiler from "sssg/src/plugins/ts-compiler"; import MarkdownMetadata from "sssg/src/plugins/markdown-metadata"; import MarkdownCompiler from "sssg/src/plugins/markdown-compiler"; +import CompileTimeJS from "sssg/src/plugins/compile-time-js"; import * as path from "path"; import * as fs from "fs"; @@ -15,6 +16,7 @@ const sssg = new SSSG({ await sssg.run({ plugins: [ + new CompileTimeJS(), new Variables(() => { const variables: Record = { __BLOG_POSTS__: JSON.stringify( diff --git a/website/assets/binkies/tom.png b/website/assets/binkies/tom.png new file mode 100644 index 0000000..7c4c476 Binary files /dev/null and b/website/assets/binkies/tom.png differ diff --git a/website/index.html b/website/index.html index 34301e8..6b5c285 100644 --- a/website/index.html +++ b/website/index.html @@ -5,6 +5,7 @@ __TEMPLATE_HEAD__ + @@ -94,46 +95,6 @@ __TEMPLATE_HEAD__
- - sad.ovh binkie - - - - - unnick - - - - eightyeightthirty.one - - - onz.ee - - - moosyu.github.io - - - trademarkization company of 2003 - - - thinliquid's button - - - joosh's button - - - ctrlaustin's button - - - satorikeiko's button - - - nekoaerospace's button - - tomxcd at derg dot rest
diff --git a/website/scripts/binkies.ts b/website/scripts/binkies.ts new file mode 100644 index 0000000..6b34eee --- /dev/null +++ b/website/scripts/binkies.ts @@ -0,0 +1,34 @@ +const binkies = document.querySelector(".binkies")!; + +const binky = [ + ["https://sad.ovh", "sadovh.png"], + ["https://unnick.mice.tel", "unnick.png"], + [ + "https://github.com/NotNite/eightyeightthirtyone", + "eighteightthirtyone.png", + ], + ["https://onz.ee", "shame.png"], + ["https://moosyu.github.io", "moosyu.gif"], + ["https://trademarkhell.net/", "tm.png"], + ["https://thinliquid.dev", "lqd.png"], + ["https://joosh.nekoweb.org/", "joosh.gif"], + ["https://ctrlaustin.nekoweb.org", "ctrlaustin.gif"], + ["https://satorikeiko.surge.sh", "satorikeiko.png"], + ["https://nekoaerospace.nekoweb.org", "nekoaerospace.png"], + ["https://derg.rest", "tom.png"], +]; + +binky.forEach((z) => { + const a = document.createElement("a"); + a.href = z[0]; + a.ariaLabel = `${z[1]}'s website`; + a.className = "hasBadge"; + + const img = document.createElement("img"); + img.src = `/assets/binkies/${z[1]}`; + img.width = 88; + img.height = 31; + img.alt = `${z[0]} binkie`; + a.appendChild(img); + binkies.appendChild(a); +});