Hi There,
I’m trying to create an extra_link on the header in order to serve a custom html file with some information. I want this page to look exacly as the home page (with navbar and footer) but with different text.
So far, I added the following line to custom/templates/custom/extra_links.tmpl
< a class=“item” href="{{AppSubUrl}}/getstarted.html">Get Started < /a>
In order to get the same header and footer than all gitea page I tried the following getstarted.html:
< !DOCTYPE html>
< html lang="{{.Language}}">
< head data-suburl="{{AppSubUrl}}">
< meta charset=“utf-8”>
< meta name=“viewport” content=“width=device-width, initial-scale=1”>
< meta http-equiv=“x-ua-compatible” content=“ie=edge”>
< title>Get Started - {{AppName}}
< link rel=“manifest” href="{{AppSubUrl}}/manifest.json" crossorigin=“use-credentials”>
< /head>
< body>
{{template “base/head” .}}
< div class=“full height”>
HELLO WORLD!
< /div>
{{template “base/footer” .}}
< /body>
< /html>
but when rendering it does not add the header and the footer and the page shows:
{{template “base/head” .}}
HELLO WORLD!
{{template “base/footer” .}}
Do you have any template in order to create a custom extra_link page for Gitea?
Thank you
marc