25 Commits

Author SHA1 Message Date
6e288b3525 feat: add config.theme for templates subdirectory 2025-04-15 13:29:43 +02:00
001ca4879a feat: add --force flag to force rebuild 2025-04-15 13:27:51 +02:00
5271c4c9aa feat: Add refresh config to prevent hammering servers 2025-04-14 22:44:00 +02:00
a15d380bc9 meta: start refactoring 2025-04-14 22:33:42 +02:00
eb09729f38 meta: add feeds/ and out/ to .gitignore 2025-04-14 22:32:59 +02:00
3d3bbc3709 fix: add max_entries in default config file 2025-04-14 22:32:15 +02:00
Vincent Ambo
d41e2bdd1c feat(planet-mars): add CI configuration
Adds CI configuration that builds the Rust package, and exports the package back
to Github after submits to canon.

Change-Id: I2f8dcff2a614898c55115f44510543ff25d46b55
Reviewed-on: https://cl.tvl.fyi/c/depot/+/12996
Autosubmit: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
Reviewed-by: thk <thomas@koch.ro>
2025-01-13 09:06:40 +00:00
Vincent Ambo
50f87e0ea0 subtree(web/planet-mars): import project from previous upstream
This project is moving into the depot. Upstream is
github/thkoch2001/planet-mars.

This commit does not yet add a Nix build, only imports the code and matches
formatting requirements.

The import has been josh-filtered, which will allow us to continue publishing
the history to the previous repo.

Change-Id: I9cb184b5af3f74a0b4079bac499b4db039b7939b
2025-01-13 11:48:33 +03:00
Thomas Koch
32d314a357 also commit Cargo.lock 2025-01-13 09:27:39 +02:00
Thomas Koch
f333fe2b22 update README 2025-01-13 09:26:36 +02:00
Thomas Koch
917aed0247 fix previous commit :-( 2025-01-12 21:15:26 +02:00
Thomas Koch
f8c5668506 set explicit versions for deps and update 2025-01-12 21:14:37 +02:00
Thomas Koch
5c629bce7a fix double https://https:// in useragent 2025-01-12 21:14:20 +02:00
Thomas Koch
be9ec4f592 fix typo in atom template, link element 2025-01-12 20:49:38 +02:00
Thomas Koch
603b4f2a29 get authors also from feed data + some css 2025-01-12 20:13:18 +02:00
Thomas Koch
433afd364f add some docs 2025-01-12 13:02:45 +02:00
Thomas Koch
d777694118 generate a blogroll 2025-01-12 11:23:31 +02:00
Thomas Koch
477a94a374 resolved error handling todos 2025-01-12 10:58:15 +02:00
Thomas Koch
6f4093302a add Cargo metadata 2025-01-11 21:44:16 +02:00
Thomas Koch
236742bb3c rm done todos from readme 2025-01-11 21:26:54 +02:00
Thomas Koch
66ddfaf94f implemented also atom feed via template 2025-01-11 21:17:55 +02:00
Thomas Koch
6e325179a2 stuff 2025-01-11 13:45:03 +02:00
Thomas Koch
4a58996e44 Fix caching
Nginx's std cfg only returns 304 with If-Unmodified-Since header, if the date
is exactly the one it expects, not the date the client did its last request.

This makes sense as it is much easier to compare two strings for equality than
to parse the date received from the client and check the ordering with the
server known last_modified value.
2025-01-11 13:38:20 +02:00
Thomas Koch
cd1237cfc6 generating html from 12 feeds works 2025-01-10 20:17:06 +02:00
Thomas Koch
0f134ad61b . 2025-01-10 11:39:54 +02:00