diff options
| author | Christian Cleberg <[email protected]> | 2026-08-11 15:31:39 -0500 |
|---|---|---|
| committer | Christian Cleberg <[email protected]> | 2026-08-11 15:31:39 -0500 |
| commit | 4d3f7fe4d19b0bff06f53d11f34746b421c7c042 (patch) | |
| tree | 35f0d1fc99b17fbd4aaaedb232017ef00171fffe /content/templates/base.html | |
| parent | 584da4a4e0fec8873b3168ec5b0002a1bbc1c392 (diff) | |
| download | cleberg.net-4d3f7fe4d19b0bff06f53d11f34746b421c7c042.tar.gz cleberg.net-4d3f7fe4d19b0bff06f53d11f34746b421c7c042.tar.bz2 cleberg.net-4d3f7fe4d19b0bff06f53d11f34746b421c7c042.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. #} |
