loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Split Forgejo landing page template to allow patching or removing Forgejo introduction section (#6675)

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>

authored by

David Rotermund
fnetX
David Rotermund
and committed by
Otto
61b60869 63e52b1b

+37 -36
+1 -36
templates/home.tmpl
··· 11 11 </div> 12 12 </div> 13 13 </div> 14 - <div class="ui stackable middle very relaxed page grid"> 15 - <div class="eight wide center column"> 16 - <h1 class="hero ui icon header"> 17 - {{svg "octicon-flame"}} {{ctx.Locale.Tr "startpage.install"}} 18 - </h1> 19 - <p class="large"> 20 - {{ctx.Locale.Tr "startpage.install_desc" "https://forgejo.org/download/#installation-from-binary" "https://forgejo.org/download/#container-image" "https://forgejo.org/download"}} 21 - </p> 22 - </div> 23 - <div class="eight wide center column"> 24 - <h1 class="hero ui icon header"> 25 - {{svg "octicon-device-desktop"}} {{ctx.Locale.Tr "startpage.platform"}} 26 - </h1> 27 - <p class="large"> 28 - {{ctx.Locale.Tr "startpage.platform_desc"}} 29 - </p> 30 - </div> 31 - </div> 32 - <div class="ui stackable middle very relaxed page grid"> 33 - <div class="eight wide center column"> 34 - <h1 class="hero ui icon header"> 35 - {{svg "octicon-rocket"}} {{ctx.Locale.Tr "startpage.lightweight"}} 36 - </h1> 37 - <p class="large"> 38 - {{ctx.Locale.Tr "startpage.lightweight_desc"}} 39 - </p> 40 - </div> 41 - <div class="eight wide center column"> 42 - <h1 class="hero ui icon header"> 43 - {{svg "octicon-code"}} {{ctx.Locale.Tr "startpage.license"}} 44 - </h1> 45 - <p class="large"> 46 - {{ctx.Locale.Tr "startpage.license_desc" "https://forgejo.org/download" "https://codeberg.org/forgejo/forgejo"}} 47 - </p> 48 - </div> 49 - </div> 14 + {{template "home_forgejo" .}} 50 15 </div> 51 16 {{template "base/footer" .}}
+36
templates/home_forgejo.tmpl
··· 1 + <div class="ui stackable middle very relaxed page grid"> 2 + <div class="eight wide center column"> 3 + <h1 class="hero ui icon header"> 4 + {{svg "octicon-flame"}} {{ctx.Locale.Tr "startpage.install"}} 5 + </h1> 6 + <p class="large"> 7 + {{ctx.Locale.Tr "startpage.install_desc" "https://forgejo.org/download/#installation-from-binary" "https://forgejo.org/download/#container-image" "https://forgejo.org/download"}} 8 + </p> 9 + </div> 10 + <div class="eight wide center column"> 11 + <h1 class="hero ui icon header"> 12 + {{svg "octicon-device-desktop"}} {{ctx.Locale.Tr "startpage.platform"}} 13 + </h1> 14 + <p class="large"> 15 + {{ctx.Locale.Tr "startpage.platform_desc"}} 16 + </p> 17 + </div> 18 + </div> 19 + <div class="ui stackable middle very relaxed page grid"> 20 + <div class="eight wide center column"> 21 + <h1 class="hero ui icon header"> 22 + {{svg "octicon-rocket"}} {{ctx.Locale.Tr "startpage.lightweight"}} 23 + </h1> 24 + <p class="large"> 25 + {{ctx.Locale.Tr "startpage.lightweight_desc"}} 26 + </p> 27 + </div> 28 + <div class="eight wide center column"> 29 + <h1 class="hero ui icon header"> 30 + {{svg "octicon-code"}} {{ctx.Locale.Tr "startpage.license"}} 31 + </h1> 32 + <p class="large"> 33 + {{ctx.Locale.Tr "startpage.license_desc" "https://forgejo.org/download" "https://codeberg.org/forgejo/forgejo"}} 34 + </p> 35 + </div> 36 + </div>