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> <ul>
<li> <li>
<hgroup> <hgroup>
<h2>{{ .UserTitle }}</h2> <a href="{{ .User.UrlPath }}"><h2>{{ .UserTitle }}</h2></a>
<h3>{{ .UserSubtitle }}</h3> <h3>{{ .UserSubtitle }}</h3>
</hgroup> </hgroup>
</li> </li>

View File

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