added link back to home view
This commit is contained in:
parent
96d0a1e98b
commit
dc2558fd38
|
@ -20,7 +20,7 @@
|
|||
<ul>
|
||||
<li>
|
||||
<hgroup>
|
||||
<h2>{{ .UserTitle }}</h2>
|
||||
<a href="{{ .User.UrlPath }}"><h2>{{ .UserTitle }}</h2></a>
|
||||
<h3>{{ .UserSubtitle }}</h3>
|
||||
</hgroup>
|
||||
</li>
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue