Apply Illuminated Nocturne style to cover template

Replaces Georgia with Cormorant Garamond (display, 300 italic) + Lora
(body) across all cover text. Adds @font-face declarations pointing to
fonts/ (same as interior). Updates gold tokens to match interior palette.

Visual changes: front title in Cormorant light italic with gold gradient
rule below, ❧ ornament replacing ✦, synopsis body in Lora.
cover.js now reads 00-front-matter.md to inject author name into spine,
front, and removes the [AUTOR] placeholder.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-03 18:44:19 +02:00
parent 87a3925c3e
commit 96ba26559b
3 changed files with 115 additions and 44 deletions
+8
View File
@@ -3,6 +3,7 @@ import { readFile, writeFile, access } from 'fs/promises';
import { resolve, dirname } from 'path';
import { fileURLToPath } from 'url';
import nunjucks from 'nunjucks';
import matter from 'gray-matter';
const __dir = dirname(fileURLToPath(import.meta.url));
const root = resolve(__dir, '..');
@@ -48,6 +49,10 @@ async function generate() {
const backImage = await fileExists(resolve(root, 'images/cover/back.png'))
? '../images/cover/back.png' : null;
// Load author / title from front matter
const fmRaw = await readFile(resolve(root, 'content', '00-front-matter.md'), 'utf-8');
const { data: fm } = matter(fmRaw);
// Render HTML from template
const env = nunjucks.configure(resolve(root, 'templates'), { autoescape: false });
const html = env.render('cover.html', {
@@ -63,6 +68,9 @@ async function generate() {
hasSpineText: pageCount >= MIN_SPINE_TEXT,
frontImage,
backImage,
author: fm.author || '',
title: fm.title || 'Das Kaleidoskop der Schlummerwelten',
subtitle: fm.subtitle || '',
});
const htmlOut = resolve(root, 'output', 'cover.html');