Version 1.7.3 home.tmpl does not work #3000

Closed
opened 2025-11-02 04:56:45 -06:00 by GiteaMirror · 10 comments
Owner

Originally created by @MyLive on GitHub (Mar 4, 2019).

  • Gitea version (or commit ref): 1.7.3
  • Git version: 2.20.1
  • Operating system: ubuntu 18.04
  • 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

Version 1.7.3 home.tmpl does not work
Gittea is started with Systemd
WorkingDirectory=/opt/gitea

-rw-r--r-- 1 root root 351 Mar 4 16:03 /opt/gitea/custom/templates/home.tmpl

Originally created by @MyLive on GitHub (Mar 4, 2019). <!-- 1. Please speak English, this is the language all of us can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/NsatcWJ) 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.7.3 - Git version: 2.20.1 - Operating system: ubuntu 18.04 - Database (use `[x]`): - [ ] PostgreSQL - [X] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [X] Not relevant - Log gist: ## Description Version 1.7.3 home.tmpl does not work Gittea is started with Systemd WorkingDirectory=/opt/gitea -rw-r--r-- 1 root root 351 Mar 4 16:03 /opt/gitea/custom/templates/home.tmpl
Author
Owner

@jolheiser commented on GitHub (Mar 4, 2019):

Are there any errors in the logs or on the page?
Based on that path it looks like you're using a custom template, when was it last updated?

@jolheiser commented on GitHub (Mar 4, 2019): Are there any errors in the logs or on the page? Based on that path it looks like you're using a custom template, when was it last updated?
Author
Owner

@MyLive commented on GitHub (Mar 4, 2019):

No, i dont see any error in the log ( loglevel = debug )

@MyLive commented on GitHub (Mar 4, 2019): No, i dont see any error in the log ( loglevel = debug )
Author
Owner

@techknowlogick commented on GitHub (Mar 4, 2019):

What isn't working about it? Is it that Gitea doesn't start up, or you can't see any changes made to the template? Or something else?

@techknowlogick commented on GitHub (Mar 4, 2019): What isn't working about it? Is it that Gitea doesn't start up, or you can't see any changes made to the template? Or something else?
Author
Owner

@MyLive commented on GitHub (Mar 5, 2019):

Gittea works, but the home.tmpl doesnt work.

I see no changes :-)

@MyLive commented on GitHub (Mar 5, 2019): Gittea works, but the home.tmpl doesnt work. I see no changes :-)
Author
Owner

@lunny commented on GitHub (Mar 5, 2019):

That's your user-defined home.tmpl?

@lunny commented on GitHub (Mar 5, 2019): That's your user-defined home.tmpl?
Author
Owner

@MyLive commented on GitHub (Mar 5, 2019):

Yes

@MyLive commented on GitHub (Mar 5, 2019): Yes
Author
Owner

@jolheiser commented on GitHub (Mar 5, 2019):

Can you send a screenshot of how it isn't working, or what you expect to see that you don't?

@jolheiser commented on GitHub (Mar 5, 2019): Can you send a screenshot of how it isn't working, or what you expect to see that you don't?
Author
Owner

@techknowlogick commented on GitHub (Mar 5, 2019):

I think this might be related to perhaps a missing custom env variable

@techknowlogick commented on GitHub (Mar 5, 2019): I think this might be related to perhaps a missing custom env variable
Author
Owner

@MyLive commented on GitHub (Mar 6, 2019):

The Template have only the Content
{{template "base/head" .}} Test {{template "base/footer" .}}
But the home Site have the normal Content :-/
@techknowlogick which var did you mean ?

@MyLive commented on GitHub (Mar 6, 2019): The Template have only the Content ` {{template "base/head" .}} Test {{template "base/footer" .}} ` But the home Site have the normal Content :-/ @techknowlogick which var did you mean ?
Author
Owner

@MyLive commented on GitHub (Mar 6, 2019):

Solved ..
@techknowlogick you're right ..

I have forgotten to set GITEA_CUSTOM Env var.

Thanks a lot for the hint 👍

@MyLive commented on GitHub (Mar 6, 2019): Solved .. @techknowlogick you're right .. I have forgotten to set GITEA_CUSTOM Env var. Thanks a lot for the hint :+1:
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#3000