From 17131d475ea658e3feeb37f8f01900f1285fe128 Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Tue, 11 Aug 2026 15:31:39 -0500 Subject: Publish theme/static directly instead of copying it into content MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit org-ssg can read asset directories outside its source now, so the four files copied in — gpg.txt, robots.txt, salary.csv and styles.css — go back to having one home. `[build] assets = ["../theme/static"]` publishes that directory at /, which is where weblorg serves it from too. That also removes the note asking whoever comes next to keep two stylesheets identical, and picks up styles.min.css as a side effect. --- content/templates/base.html | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'content/templates/base.html') diff --git a/content/templates/base.html b/content/templates/base.html index cfda0f1..e391e8d 100644 --- a/content/templates/base.html +++ b/content/templates/base.html @@ -1,12 +1,9 @@ {# Page layout for org-ssg, mirroring theme/templates/base.html. - Styling comes from styles.css, copied here from theme/static/ along with gpg.txt, - robots.txt and salary.csv — org-ssg publishes assets from inside its source - directory, and weblorg's live static root is theme/static/. The copies should stay - identical: `diff content/styles.css theme/static/styles.css` and friends should - print nothing, or consolidate the two if you migrate for real. weblorg links the - minified styles.min.css instead; that file is gitignored build output, and the rules - are the same, so the tracked stylesheet is the one to publish from here. + Styling comes from theme/static/styles.css, published by `[build] assets` in + org-ssg.toml — the same directory weblorg serves at /, read in place rather than + copied. weblorg links the minified styles.min.css instead; that file is gitignored + build output and the rules are the same, so this links the tracked one. Available here: page (.title .url .source .date .date_iso .tags .excerpt .toc .keywords), site, nav, root, stylesheet. See the org-ssg guide on Templates. #} -- cgit v1.2.3