diff options
| author | Christian Cleberg <[email protected]> | 2026-08-11 15:31:39 -0500 |
|---|---|---|
| committer | Christian Cleberg <[email protected]> | 2026-08-11 20:35:15 -0500 |
| commit | 17131d475ea658e3feeb37f8f01900f1285fe128 (patch) | |
| tree | 35f0d1fc99b17fbd4aaaedb232017ef00171fffe /content/templates/base.html | |
| parent | b6870928c46c1eec7103746bd3153a671b8d344c (diff) | |
| download | cleberg.net-17131d475ea658e3feeb37f8f01900f1285fe128.tar.gz cleberg.net-17131d475ea658e3feeb37f8f01900f1285fe128.tar.bz2 cleberg.net-17131d475ea658e3feeb37f8f01900f1285fe128.zip | |
Publish theme/static directly instead of copying it into content
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.
Diffstat (limited to 'content/templates/base.html')
| -rw-r--r-- | content/templates/base.html | 11 |
1 files changed, 4 insertions, 7 deletions
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. #} |
