Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion scripts/eval.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ function checkHomepageSeoGeoMetadata() {
const file = "site/index.html";
const source = readFileSync(abs(file), "utf8");
const canonicalUrl = "https://www.punkrockai.com/";
const bothHandsFullUrl = "https://www.bothhandsfull.com/";

if (!source.includes(`<link rel="canonical" href="${canonicalUrl}" />`)) {
failures.push(`${file}: homepage canonical must be ${canonicalUrl}`);
Expand Down Expand Up @@ -197,7 +198,7 @@ function checkHomepageSeoGeoMetadata() {
if (person?.name !== "Kris Krüg") {
failures.push(`${file}: Person JSON-LD must name Kris Krüg`);
}
if (!person?.sameAs?.includes("https://bothhandsfull.ai/")) {
if (!person?.sameAs?.includes(bothHandsFullUrl)) {
failures.push(`${file}: Person JSON-LD must connect Both Hands Full`);
}
if (work?.url !== canonicalUrl || work?.creator?.["@id"] !== person?.["@id"]) {
Expand All @@ -211,6 +212,9 @@ function checkHomepageSeoGeoMetadata() {
failures.push(`${file}: visible homepage copy must include ${text}`);
}
}
if (!source.includes(`href="${bothHandsFullUrl}"`)) {
failures.push(`${file}: visible Both Hands Full link must use ${bothHandsFullUrl}`);
}

const llmsFile = "site/llms.txt";
if (existsSync(abs(llmsFile))) {
Expand All @@ -220,6 +224,9 @@ function checkHomepageSeoGeoMetadata() {
failures.push(`${llmsFile}: llms.txt must include ${text}`);
}
}
if (!llms.includes(bothHandsFullUrl)) {
failures.push(`${llmsFile}: Both Hands Full link must use ${bothHandsFullUrl}`);
}
}
}

Expand Down
4 changes: 2 additions & 2 deletions site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"name": "Kris Krüg",
"url": "https://kriskrug.co/",
"sameAs": [
"https://bothhandsfull.ai/",
"https://www.bothhandsfull.com/",
"https://bc-ai.ca/",
"https://www.punkrockai.com/"
],
Expand Down Expand Up @@ -292,7 +292,7 @@ <h1 class="hero__title punk-ransom">
<p>
Punk Rock AI is Kris Kr&uuml;g&rsquo;s CreativeMornings Vancouver keynote
portal and a public workshop layer from the
<a href="https://bothhandsfull.ai/">Both Hands Full</a> practice:
<a href="https://www.bothhandsfull.com/">Both Hands Full</a> practice:
critique in one hand, capability in the other. The site gathers the
talk, recap, photos, field course, and widgets so people can cite
the work and use it without flattening AI into hype or panic.
Expand Down
2 changes: 1 addition & 1 deletion site/llms.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Punk Rock AI is Kris Krug's CreativeMornings Vancouver keynote portal about hold

Canonical site: https://www.punkrockai.com/
Creator: Kris Krug
Related practice: Both Hands Full, https://bothhandsfull.ai/
Related practice: Both Hands Full, https://www.bothhandsfull.com/

Primary pages:
- Homepage: https://www.punkrockai.com/
Expand Down
Loading