<feed xmlns='http://www.w3.org/2005/Atom'>
<title>cgit/ui-shared.c, branch sy/customisations</title>
<subtitle>cgit is the backbone of git.syndamia.com. This repository contains changes which are used in the website itself.</subtitle>
<id>https://git.syndamia.com/fork/cgit/atom/ui-shared.c?h=sy%2Fcustomisations</id>
<link rel='self' href='https://git.syndamia.com/fork/cgit/atom/ui-shared.c?h=sy%2Fcustomisations'/>
<link rel='alternate' type='text/html' href='https://git.syndamia.com/fork/cgit/'/>
<updated>2026-10-04T09:00:00Z</updated>
<entry>
<title>ui-shared: (THEME) Move homepage to the beginning, rename to Website</title>
<updated>2026-10-04T09:00:00Z</updated>
<author>
<name>Syndamia</name>
<email>kamen@syndamia.com</email>
</author>
<published>2026-10-03T18:44:39Z</published>
<link rel='alternate' type='text/html' href='https://git.syndamia.com/fork/cgit/commit/?id=043152ca6bf882f89bae8d06034ba2711cf07209'/>
<id>urn:sha1:043152ca6bf882f89bae8d06034ba2711cf07209</id>
<content type='text'>
</content>
</entry>
<entry>
<title>ui-shared: Use repo logo as favicon when available</title>
<updated>2026-10-04T09:00:00Z</updated>
<author>
<name>Syndamia</name>
<email>kamen@syndamia.com</email>
</author>
<published>2026-10-02T04:26:43Z</published>
<link rel='alternate' type='text/html' href='https://git.syndamia.com/fork/cgit/commit/?id=880351bd0ba746bbf276425341598afa905d552f'/>
<id>urn:sha1:880351bd0ba746bbf276425341598afa905d552f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>ui-shared: (THEME) Rename and reorder pageheader elements</title>
<updated>2026-09-27T19:17:17Z</updated>
<author>
<name>Syndamia</name>
<email>kamen@syndamia.com</email>
</author>
<published>2026-09-27T19:04:58Z</published>
<link rel='alternate' type='text/html' href='https://git.syndamia.com/fork/cgit/commit/?id=bc6ec37107681719807fcc7edd0feb7a826ae0e5'/>
<id>urn:sha1:bc6ec37107681719807fcc7edd0feb7a826ae0e5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>html: Improve navigation compatibility</title>
<updated>2026-09-27T19:16:27Z</updated>
<author>
<name>Syndamia</name>
<email>kamen@syndamia.com</email>
</author>
<published>2026-09-27T19:04:58Z</published>
<link rel='alternate' type='text/html' href='https://git.syndamia.com/fork/cgit/commit/?id=2384fa99a62615c88884d5e0ab7f921f14500646'/>
<id>urn:sha1:2384fa99a62615c88884d5e0ab7f921f14500646</id>
<content type='text'>
Primarily adds spaces between different links to make navigation when
CSS is not available easier
</content>
</entry>
<entry>
<title>ui-shared: fix the Expires header on error pages</title>
<updated>2026-09-18T11:51:15Z</updated>
<author>
<name>Konstantin Ryabitsev</name>
<email>konstantin@linuxfoundation.org</email>
</author>
<published>2026-08-25T15:07:25Z</published>
<link rel='alternate' type='text/html' href='https://git.syndamia.com/fork/cgit/commit/?id=156e859aad4c98a169ce4c49e839cae41a28f432'/>
<id>urn:sha1:156e859aad4c98a169ce4c49e839cae41a28f432</id>
<content type='text'>
page.expires is an absolute time: the normal path seeds it from
page.modified and adds the relevant TTL in seconds. The error page
instead assigns cache-dynamic-ttl directly, which is a count of minutes
and carries no base, so every error page cgit has produced since
"ui-shared: cache errors for dynamic TTL" reports

  Expires: Thu, 01 Jan 1970 00:00:05 GMT

five seconds past the epoch, which is the value of the default TTL read
as seconds. The intent of that change was to stop errors being cached
forever; the effect is that they are never cached at all, since every
downstream cache is told the response was already stale.

Seed the value from page.modified and scale the TTL to seconds, matching
what calc_ttl() does for ordinary pages. prepare_context() sets
page.modified before anything can produce an error page, so the base is
always available.

Add a test. The header can be checked without any date arithmetic: a TTL
of zero has to reproduce Last-Modified exactly, and a non-zero one has
to differ from it without falling back to the epoch.

Fixes: c5975ae ("ui-shared: cache errors for "dynamic TTL"")
Signed-off-by: Konstantin Ryabitsev &lt;konstantin@linuxfoundation.org&gt;
Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</content>
</entry>
<entry>
<title>cgit: override die routine globally</title>
<updated>2026-03-10T21:19:00Z</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2026-03-10T20:26:55Z</published>
<link rel='alternate' type='text/html' href='https://git.syndamia.com/fork/cgit/commit/?id=0d8e5fbc31e1082063bfb5155c35b7869721152b'/>
<id>urn:sha1:0d8e5fbc31e1082063bfb5155c35b7869721152b</id>
<content type='text'>
We don't get any return value from compile_grep_patterns calling
compile_regexp_failed, causing the default die routine to print to
stderr and then for cgit to exit ungracefully.

Instead override the default die routine to show a normal error page.

Perhaps compile_grep_patterns ought to change upstream to return an
error. But this commit here will handle future issues as well, so
perhaps not a bad idea to do anyway.

Link: https://lists.zx2c4.com/pipermail/cgit/2026-March/004982.html
Link: https://lists.zx2c4.com/pipermail/cgit/2026-March/004983.html
Reported-by: Adrian C. &lt;anrxc@sysphere.org&gt;
Reported-by: Aiden Woodruff &lt;aiden@aidenw.net&gt;
Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</content>
</entry>
<entry>
<title>ui-log: allow link following to be disabled per-repo</title>
<updated>2026-02-24T10:49:35Z</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2026-02-24T10:48:54Z</published>
<link rel='alternate' type='text/html' href='https://git.syndamia.com/fork/cgit/commit/?id=0d28d54f0a287ee3e5a12d14ffd2ee23b5e22d76'/>
<id>urn:sha1:0d28d54f0a287ee3e5a12d14ffd2ee23b5e22d76</id>
<content type='text'>
This exists for other CPU heavy operations like blame, but doesn't for
the follow functionality. Add it for that.

Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</content>
</entry>
<entry>
<title>ui-shared: don't write &lt;link&gt; if favicon unset</title>
<updated>2026-02-23T23:39:05Z</updated>
<author>
<name>Christian Barcenas</name>
<email>christian@cbarcenas.com</email>
</author>
<published>2025-08-21T19:46:33Z</published>
<link rel='alternate' type='text/html' href='https://git.syndamia.com/fork/cgit/commit/?id=11a6c92def985710eca79733f136b471d474b053'/>
<id>urn:sha1:11a6c92def985710eca79733f136b471d474b053</id>
<content type='text'>
Since the favicon setting defaults to "/favicon.ico", the user can
only unset it with favicon=. However, that would write an empty string
as the config value. Previously, such empty string always satisfied
the if condition. In this case it is better to omit the &lt;link&gt; entirely.

Signed-off-by: Christian Barcenas &lt;christian@cbarcenas.com&gt;
Signed-off-by: Christian Hesse &lt;mail@eworm.de&gt;
</content>
</entry>
<entry>
<title>git: update to v2.53.0</title>
<updated>2026-02-02T19:44:31Z</updated>
<author>
<name>Christian Hesse</name>
<email>mail@eworm.de</email>
</author>
<published>2026-01-19T10:46:27Z</published>
<link rel='alternate' type='text/html' href='https://git.syndamia.com/fork/cgit/commit/?id=d9da9cec9640668f82b2f367fade18eb27b28616'/>
<id>urn:sha1:d9da9cec9640668f82b2f367fade18eb27b28616</id>
<content type='text'>
Update to git version v2.53.0, this requires changes for these
upstream commits:

* bdbebe5714b25dc9d215b48efbb80f410925d7dd
  refs: introduce wrapper struct for `each_ref_fn`

* 589127caa73090040200989ff4d24c3d54f473f2
  packfile: move list of packs into the packfile store

* 5a5c7359f77ecd1bc4b0e172563161d602f131d3
  refs: drop `current_ref_iter` hack

* b6e4cc8c32850315323961659e553d1d14591f7f
  tag: support arbitrary repositories in parse_tag()

* 84f0e60b28de69d1ccb7a51b729af6202b6cf4c8
  packfile: move packfile store into object source

Signed-off-by: Christian Hesse &lt;mail@eworm.de&gt;
</content>
</entry>
<entry>
<title>git: update to v2.47.0</title>
<updated>2024-10-07T15:34:42Z</updated>
<author>
<name>Christian Hesse</name>
<email>mail@eworm.de</email>
</author>
<published>2024-09-26T17:41:29Z</published>
<link rel='alternate' type='text/html' href='https://git.syndamia.com/fork/cgit/commit/?id=c1733e28d91bea5647e11fe099751fbc839669d7'/>
<id>urn:sha1:c1733e28d91bea5647e11fe099751fbc839669d7</id>
<content type='text'>
Update to git version v2.47.0, this requires changes for these
upstream commits:

* e8207717f1623325fe1c95338fb03c1104ed5687
  refs: add referent to each_ref_fn

Signed-off-by: Christian Hesse &lt;mail@eworm.de&gt;
</content>
</entry>
</feed>
