This commit is contained in:
parent
05f62f7025
commit
a91e7967b4
2
index.ts
2
index.ts
|
@ -4,6 +4,7 @@ import Dev from "sssg/src/plugins/dev";
|
||||||
import TSCompiler from "sssg/src/plugins/ts-compiler";
|
import TSCompiler from "sssg/src/plugins/ts-compiler";
|
||||||
import MarkdownMetadata from "sssg/src/plugins/markdown-metadata";
|
import MarkdownMetadata from "sssg/src/plugins/markdown-metadata";
|
||||||
import MarkdownCompiler from "sssg/src/plugins/markdown-compiler";
|
import MarkdownCompiler from "sssg/src/plugins/markdown-compiler";
|
||||||
|
import CompileTimeJS from "sssg/src/plugins/compile-time-js";
|
||||||
|
|
||||||
import * as path from "path";
|
import * as path from "path";
|
||||||
import * as fs from "fs";
|
import * as fs from "fs";
|
||||||
|
@ -15,6 +16,7 @@ const sssg = new SSSG({
|
||||||
|
|
||||||
await sssg.run({
|
await sssg.run({
|
||||||
plugins: [
|
plugins: [
|
||||||
|
new CompileTimeJS(),
|
||||||
new Variables(() => {
|
new Variables(() => {
|
||||||
const variables: Record<string, string> = {
|
const variables: Record<string, string> = {
|
||||||
__BLOG_POSTS__: JSON.stringify(
|
__BLOG_POSTS__: JSON.stringify(
|
||||||
|
|
BIN
website/assets/binkies/tom.png
Normal file
BIN
website/assets/binkies/tom.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5 KiB |
File diff suppressed because one or more lines are too long
34
website/scripts/binkies.ts
Normal file
34
website/scripts/binkies.ts
Normal file
|
@ -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);
|
||||||
|
});
|
Loading…
Reference in a new issue