Add the site baseline: search metadata, robots, sitemap, 404 page
Generated by Carino-Systems/baseline/apply.py: a marked head block (description, canonical URL, Open Graph, schema.org JSON-LD), robots.txt, sitemap.xml and a 404 page. AUDIT.md starts the provenance ledger: every file counts as AI-written until a person marks it reviewed. build.js now carries the head block over between builds, keeps the favicon line that had only ever been added to the output by hand, and adds a small corner link to carino.systems/legal.html.
This commit is contained in:
parent
3b63b1c085
commit
7425bb2bdc
6 changed files with 124 additions and 1 deletions
45
404.html
Normal file
45
404.html
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
<!doctype html>
|
||||
<!-- generated by Carino-Systems/baseline/apply.py — edit the template, not this file -->
|
||||
<!-- GitHub Pages serves this file for any address that does not exist, at any
|
||||
depth, so every link here is absolute and nothing is loaded from the site:
|
||||
no scripts, no fonts, no images. -->
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="robots" content="noindex">
|
||||
<title>Page not found — CyberCity</title>
|
||||
<style>
|
||||
:root { color-scheme: dark; }
|
||||
body { margin: 0; min-height: 100vh; display: grid; place-items: center; padding: 24px 16px;
|
||||
box-sizing: border-box; background: #050505; color: #e5e5e5;
|
||||
font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
|
||||
main { max-width: 34rem; width: 100%; }
|
||||
.code { font: 700 4.5rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: #eab308; margin: 0 0 8px; }
|
||||
h1 { font-size: 1.25rem; margin: 0 0 20px; color: #fff; }
|
||||
ul { list-style: none; padding: 0; margin: 0 0 28px; color: #a3a3a3; font-size: .95rem; }
|
||||
li { padding: 3px 0; }
|
||||
li span { display: inline-block; min-width: 2.6rem; font: 700 .7rem ui-monospace, monospace; color: #737373; }
|
||||
nav { display: flex; flex-wrap: wrap; gap: 10px; }
|
||||
a { color: #050505; background: #eab308; text-decoration: none; font-weight: 600; padding: 9px 16px; border-radius: 6px; }
|
||||
a.alt { color: #eab308; background: transparent; border: 1px solid #404040; }
|
||||
a:hover { filter: brightness(1.1); }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<main>
|
||||
<p class="code">404</p>
|
||||
<h1>This page does not exist.</h1>
|
||||
<ul>
|
||||
<li lang="es"><span>ES</span>Esta página no existe.</li>
|
||||
<li lang="pt-BR"><span>PT</span>Esta página não existe.</li>
|
||||
<li lang="ja"><span>JA</span>このページは存在しません。</li>
|
||||
<li lang="ru"><span>RU</span>Такой страницы нет.</li>
|
||||
</ul>
|
||||
<nav>
|
||||
<a href="/">CyberCity</a>
|
||||
<a class="alt" href="https://carino.systems/">Carino Systems</a>
|
||||
</nav>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
33
AUDIT.md
Normal file
33
AUDIT.md
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
# Audit ledger
|
||||
|
||||
What a person has read in this repository, and what is still AI-written and
|
||||
unread. Git cannot say: every commit is authored by Miguel whoever wrote the
|
||||
code, so this file is the record.
|
||||
|
||||
**Default: every file not listed below is `ai`** — written by AI, not yet
|
||||
read by a person.
|
||||
|
||||
| Status | Meaning |
|
||||
|---|---|
|
||||
| `ai` | Written by AI. No person has read it. |
|
||||
| `reviewed` | A person read the whole file at the commit given. |
|
||||
| `human` | A person wrote it. |
|
||||
|
||||
Only a person changes a Status. A `reviewed` file that changes after its
|
||||
commit is reported as **stale** by
|
||||
`Carino-Systems/baseline/check.py --provenance`: a review covers the code
|
||||
that was read, not later edits.
|
||||
|
||||
Not listed and not code to study:
|
||||
|
||||
- files whose first line says `generated by Carino-Systems/baseline/apply.py`.
|
||||
Their source is the template in Carino-Systems/baseline/templates/;
|
||||
- the shared files copied in by Carino-Systems/propagate.sh
|
||||
(`carino-navbar.js`, `carino-clock.js`, `carino-lang.js`,
|
||||
`carino-bridge.js`, `carino-diag.js`, `carino-anim.*`). Review the
|
||||
canonical copy named at the top of propagate.sh;
|
||||
- third-party code: anything under `vendor/`, `node_modules/` or
|
||||
`*.min.js`, and self-hosted fonts.
|
||||
|
||||
| File | Status | By | Date | At commit | Notes |
|
||||
|---|---|---|---|---|---|
|
||||
18
build.js
18
build.js
|
|
@ -245,6 +245,13 @@ catch (e) { throw new Error('build: bundle does not parse — ' + e.message); }
|
|||
* entering fullscreen never flashes white and never shows a seam at an edge the canvas overhangs.
|
||||
* The hint is CSS-only on purpose: it fades itself out and no JavaScript ever has to know it
|
||||
* existed, which keeps main.js free of anything resembling UI. */
|
||||
/* The baseline head block (description, canonical, Open Graph, JSON-LD) is written into
|
||||
* index.html by Carino-Systems/baseline/apply.py, between two marker comments. This build
|
||||
* regenerates index.html from scratch, so it carries that block over from the previous
|
||||
* output instead of dropping it. */
|
||||
const PREV = fs.existsSync(OUT) ? fs.readFileSync(OUT, 'utf8') : '';
|
||||
const BASELINE = (PREV.match(/<!-- carino:head[\s\S]*?<!-- \/carino:head -->\n/) || [''])[0];
|
||||
|
||||
const HTML = `<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
|
|
@ -253,7 +260,8 @@ const HTML = `<!doctype html>
|
|||
<meta name="color-scheme" content="dark">
|
||||
<meta name="theme-color" content="#000000">
|
||||
<title>CyberCity</title>
|
||||
<style>
|
||||
<link rel="icon" type="image/webp" href="logo.webp">
|
||||
${BASELINE}<style>
|
||||
html, body { margin: 0; padding: 0; background: #000; height: 100%; overflow: hidden; }
|
||||
/* The canvas is allowed to overhang the viewport by a fraction of a cell (see main.js layout),
|
||||
so it is pinned to the origin and the overflow above hides the remainder. */
|
||||
|
|
@ -273,11 +281,19 @@ const HTML = `<!doctype html>
|
|||
for good after one play and never reappears on resize or fullscreen change. */
|
||||
@keyframes hint { 0% { opacity: 0 } 12% { opacity: .34 } 70% { opacity: .34 } 100% { opacity: 0 } }
|
||||
@media (prefers-reduced-motion: reduce) { #hint { animation-duration: 14s } }
|
||||
/* The one link on the page: the fleet's legal notice. Dim and small, in the corner the
|
||||
city's skyline never needs; it brightens only under the pointer. */
|
||||
#legal { position: fixed; right: 10px; bottom: 8px; z-index: 1;
|
||||
font: 500 10px/1 ui-monospace, "Liberation Mono", "DejaVu Sans Mono", monospace;
|
||||
letter-spacing: .12em; text-transform: uppercase; color: #d8e84a; opacity: .28;
|
||||
text-decoration: none; }
|
||||
#legal:hover, #legal:focus-visible { opacity: .8; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<canvas id="cc"></canvas>
|
||||
<div id="hint">click for fullscreen</div>
|
||||
<a id="legal" href="https://carino.systems/legal.html">Legal</a>
|
||||
<script>
|
||||
${bundle}</script>
|
||||
</body>
|
||||
|
|
|
|||
19
index.html
19
index.html
|
|
@ -7,6 +7,17 @@
|
|||
<meta name="theme-color" content="#000000">
|
||||
<title>CyberCity</title>
|
||||
<link rel="icon" type="image/webp" href="logo.webp">
|
||||
<!-- carino:head — generated by Carino-Systems/baseline/apply.py from sites.json; edit there, not here -->
|
||||
<meta name="description" content="Four walkable worlds drawn entirely in text characters — a rain-lit city, an 1880s frontier town, the Moon and a castle town at dusk — with the sun going round.">
|
||||
<link rel="canonical" href="https://cybercity.carino.systems/">
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:site_name" content="Carino Systems">
|
||||
<meta property="og:title" content="CyberCity">
|
||||
<meta property="og:description" content="Four walkable worlds drawn entirely in text characters — a rain-lit city, an 1880s frontier town, the Moon and a castle town at dusk — with the sun going round.">
|
||||
<meta property="og:url" content="https://cybercity.carino.systems/">
|
||||
<meta property="og:image" content="https://cybercity.carino.systems/logo.webp">
|
||||
<script type="application/ld+json">{"@context": "https://schema.org", "@type": "WebApplication", "name": "CyberCity", "url": "https://cybercity.carino.systems/", "description": "Four walkable worlds drawn entirely in text characters — a rain-lit city, an 1880s frontier town, the Moon and a castle town at dusk — with the sun going round.", "operatingSystem": "Any (runs in a web browser)", "isAccessibleForFree": true, "author": {"@type": "Person", "name": "Miguel Cariño", "url": "https://carino.systems/"}}</script>
|
||||
<!-- /carino:head -->
|
||||
<style>
|
||||
html, body { margin: 0; padding: 0; background: #000; height: 100%; overflow: hidden; }
|
||||
/* The canvas is allowed to overhang the viewport by a fraction of a cell (see main.js layout),
|
||||
|
|
@ -27,11 +38,19 @@
|
|||
for good after one play and never reappears on resize or fullscreen change. */
|
||||
@keyframes hint { 0% { opacity: 0 } 12% { opacity: .34 } 70% { opacity: .34 } 100% { opacity: 0 } }
|
||||
@media (prefers-reduced-motion: reduce) { #hint { animation-duration: 14s } }
|
||||
/* The one link on the page: the fleet's legal notice. Dim and small, in the corner the
|
||||
city's skyline never needs; it brightens only under the pointer. */
|
||||
#legal { position: fixed; right: 10px; bottom: 8px; z-index: 1;
|
||||
font: 500 10px/1 ui-monospace, "Liberation Mono", "DejaVu Sans Mono", monospace;
|
||||
letter-spacing: .12em; text-transform: uppercase; color: #d8e84a; opacity: .28;
|
||||
text-decoration: none; }
|
||||
#legal:hover, #legal:focus-visible { opacity: .8; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<canvas id="cc"></canvas>
|
||||
<div id="hint">click for fullscreen</div>
|
||||
<a id="legal" href="https://carino.systems/legal.html">Legal</a>
|
||||
<script>
|
||||
(function () {
|
||||
'use strict';
|
||||
|
|
|
|||
5
robots.txt
Normal file
5
robots.txt
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
# generated by Carino-Systems/baseline/apply.py — edit the template, not this file
|
||||
User-agent: *
|
||||
Allow: /
|
||||
|
||||
Sitemap: https://cybercity.carino.systems/sitemap.xml
|
||||
5
sitemap.xml
Normal file
5
sitemap.xml
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- generated by Carino-Systems/baseline/apply.py — edit the template, not this file -->
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||
<url><loc>https://cybercity.carino.systems/</loc></url>
|
||||
</urlset>
|
||||
Loading…
Add table
Reference in a new issue