added link back to home view

This commit is contained in:
Niko Abeler 2022-08-21 12:32:16 +02:00
parent 96d0a1e98b
commit dc2558fd38
2 changed files with 3 additions and 1 deletions

View File

@ -20,7 +20,7 @@
<ul>
<li>
<hgroup>
<h2>{{ .UserTitle }}</h2>
<a href="{{ .User.UrlPath }}"><h2>{{ .UserTitle }}</h2></a>
<h3>{{ .UserSubtitle }}</h3>
</hgroup>
</li>

View File

@ -48,12 +48,14 @@ func renderIntoBaseTemplate(user User, data PageContent) (string, error) {
full_data := struct {
Title string
Content template.HTML
User User
UserTitle string
UserSubtitle string
HeaderColor string
}{
Title: data.Title,
Content: data.Content,
User: user,
UserTitle: user_config.Title,
UserSubtitle: user_config.SubTitle,
HeaderColor: user_config.HeaderColor,