xetup/deploy/forgejo/templates/custom/header.tmpl
X9 Dev d1a387078d deploy(forgejo): version the navbar back-link header.tmpl
The Forgejo UI customization (top-left logo replaced with a xetup.x9.cz
back-link) lives in the Forgejo data volume, which is not under git. Keep the
source here with a deploy README so it survives a volume loss.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-03 16:39:48 +02:00

33 lines
1.1 KiB
Cheetah

<style>
/* The Forgejo brand in the top-left has no meaning for us; turn it into a
back-link to the main site (xetup.x9.cz). Pure CSS for the look, a tiny
script below retargets the href. */
#navbar-logo img { display: none !important; }
#navbar-logo {
display: inline-flex !important;
align-items: center;
gap: .35rem;
padding: .35rem .7rem !important;
border: 1px solid var(--color-secondary, #d4d7dc);
border-radius: 6px;
font-weight: 600;
line-height: 1;
white-space: nowrap;
}
#navbar-logo::before { content: "\2190"; font-size: 1.05em; }
#navbar-logo::after { content: "xetup.x9.cz"; }
#navbar-logo:hover {
background: var(--color-hover, rgba(0,0,0,.05));
border-color: var(--color-primary, #4078c0);
}
</style>
<script>
document.addEventListener('DOMContentLoaded', function () {
var logo = document.getElementById('navbar-logo');
if (logo) {
logo.setAttribute('href', 'https://xetup.x9.cz');
logo.setAttribute('aria-label', 'Zpet na xetup.x9.cz');
logo.setAttribute('title', 'Zpet na xetup.x9.cz');
}
});
</script>