gitea: use custom home template

This commit is contained in:
Antoine Martin 2021-04-09 16:53:05 +02:00
parent 5fa68568f3
commit 798a496709
3 changed files with 20 additions and 1 deletions

View file

@ -5,7 +5,7 @@
./bitwarden_rs.nix
./borg-backup.nix
./fail2ban.nix
./gitea.nix
./gitea
./jellyfin.nix
./lohr.nix
./matrix.nix

View file

@ -95,5 +95,7 @@ in {
};
};
};
systemd.services.gitea.preStart = "${pkgs.coreutils}/bin/ln -sfT ${./templates} ${config.services.gitea.stateDir}/custom/templates";
};
}

View file

@ -0,0 +1,17 @@
{{template "base/head" .}}
<div class="page-content home">
<div class="ui stackable middle very relaxed page grid">
<div class="sixteen wide center aligned centered column">
<div>
<img class="logo" src="{{StaticUrlPrefix}}/img/gitea-lg.png"/>
</div>
<div class="hero">
<h1 class="ui icon header title">
{{AppName}}
</h1>
<h2>alarsyo's personal projects are hosted here</h2>
</div>
</div>
</div>
</div>
{{template "base/footer" .}}