frontend: support rebranding

This commit is contained in:
Arnie97
2020-07-28 17:57:38 +08:00
committed by Lan Tian
parent 6e4bbd6410
commit 7b1dc6718d
4 changed files with 27 additions and 13 deletions

View File

@@ -24,6 +24,7 @@ type tmplArguments struct {
// Generated content to be displayed
Title string
Brand string
Content string
}
@@ -41,7 +42,7 @@ var tmpl = template.Must(template.New("tmpl").Parse(`
<body>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="/">Bird-lg Go</a>
<a class="navbar-brand" href="/">{{ .Brand }}</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>