mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-02-19 04:16:53 -05:00
If you want to get rid of the Forgejo-specific information on the landing page, the section below the slogan can now be removed by - creating the folder at `CustomPath/templates` (see CustomPath section in https://forgejo.org/docs/latest/admin/config-cheat-sheet/#default-configuration-non-appini-configuration) - creating a file `home_forgejo.tmpl` allows to override the Forgejo-specific section of the homepage with custom HTML. Leaving it empty will get rid of this section. Co-authored-by: fnetX <otto@codeberg.org> Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6675 Reviewed-by: Otto <otto@codeberg.org> Co-authored-by: David Rotermund <davrot@noreply.codeberg.org> Co-committed-by: David Rotermund <davrot@noreply.codeberg.org>
16 lines
579 B
Go HTML Template
16 lines
579 B
Go HTML Template
{{template "base/head" .}}
|
|
<div role="main" aria-label="{{if .IsSigned}}{{ctx.Locale.Tr "dashboard"}}{{else}}{{ctx.Locale.Tr "home"}}{{end}}" class="page-content home">
|
|
<div class="tw-mb-8 tw-px-8">
|
|
<div class="center">
|
|
<img class="logo" width="220" height="220" src="{{AssetUrlPrefix}}/img/logo.svg" alt="{{ctx.Locale.Tr "logo"}}">
|
|
<div class="hero">
|
|
<h1 class="ui icon header title">
|
|
{{AppDisplayName}}
|
|
</h1>
|
|
<h2>{{ctx.Locale.Tr "startpage.app_desc"}}</h2>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{template "home_forgejo" .}}
|
|
</div>
|
|
{{template "base/footer" .}}
|