summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authortechknowlogick <techknowlogick@users.noreply.github.com>2018-07-05 17:25:04 -0400
committerGitHub <noreply@github.com>2018-07-05 17:25:04 -0400
commitf1d6a1fffc9d9712f0973b51c850f10d0872a7ea (patch)
tree990007d38f5d69da4d0c7d4320f6d71856666411 /templates
parent28c1c90230efd926d1c54a293b57139ff1fc5323 (diff)
downloadgitea-f1d6a1fffc9d9712f0973b51c850f10d0872a7ea.tar.gz
gitea-f1d6a1fffc9d9712f0973b51c850f10d0872a7ea.zip
Add the ability to have built in themes in Gitea (#4198)
This makes it easier for user who want to theme but don't have the ability to know how to customize templates all that is required is a change in a config option The reason why I chose the DEFAULT_THEME as variable, as perhaps in the future we will allow users to chose their theme whon logged in just like we do with languages
Diffstat (limited to 'templates')
-rw-r--r--templates/base/head.tmpl3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl
index 53d3de1e91..a593414962 100644
--- a/templates/base/head.tmpl
+++ b/templates/base/head.tmpl
@@ -127,6 +127,9 @@
<meta property="og:url" content="{{AppUrl}}" />
<meta property="og:description" content="{{MetaDescription}}">
{{end}}
+{{if ne DefaultTheme "gitea"}}
+ <link rel="stylesheet" href="{{AppSubUrl}}/css/theme-{{DefaultTheme}}.css">
+{{end}}
{{template "custom/header" .}}
</head>
<body>