Custom HTML Page #3510

Closed
opened 2025-11-02 05:15:26 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @marcsiq on GitHub (Jun 25, 2019).

  • Gitea version (or commit ref): 1.8.3
  • Git version:
  • Operating system: Ubuntu
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

Hi there,
Could someone help me with a minor issue?

Im trying to create a new Link to a custom html page on the head navbar.
I already added the link into extra_links.tmpl to that newpage.html and the link works.
Now what I want is that page to have the same look as the home page.
In that html I can't use Gitea head and footer because if I include {{template "base/head" .}} it does not get parsed.

Any help?

Screenshots

Originally created by @marcsiq on GitHub (Jun 25, 2019). <!-- NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue --> <!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.8.3 - Git version: - Operating system: Ubuntu - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [x] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x] Not relevant - Log gist: ## Description Hi there, Could someone help me with a minor issue? Im trying to create a new Link to a custom html page on the head navbar. I already added the link into *extra_links.tmpl* to that newpage.html and the link works. Now what I want is that page to have the same look as the home page. In that html I can't use Gitea head and footer because if I include {{template "base/head" .}} it does not get parsed. Any help? ## Screenshots <!-- **If this issue involves the Web Interface, please include a screenshot** -->
GiteaMirror added the type/questionissue/stale labels 2025-11-02 05:15:26 -06:00
Author
Owner

@kolaente commented on GitHub (Jul 7, 2019):

I think you don't have a choice here but to copy the head/footer from any of the other Gitea pages.

@kolaente commented on GitHub (Jul 7, 2019): I think you don't have a choice here but to copy the head/footer from any of the other Gitea pages.
Author
Owner

@marcsiq commented on GitHub (Jul 9, 2019):

Yeah I got to that, but now the head/footer is static. I mean, it does not vary if the user is logged in or not.

@marcsiq commented on GitHub (Jul 9, 2019): Yeah I got to that, but now the head/footer is static. I mean, it does not vary if the user is logged in or not.
Author
Owner

@stale[bot] commented on GitHub (Sep 7, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Sep 7, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Author
Owner

@stale[bot] commented on GitHub (Sep 21, 2019):

This issue has been automatically closed because of inactivity. You can re-open it if needed.

@stale[bot] commented on GitHub (Sep 21, 2019): This issue has been automatically closed because of inactivity. You can re-open it if needed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#3510