added link back to home view
This commit is contained in:
parent
96d0a1e98b
commit
dc2558fd38
|
@ -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>
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue