aboutsummaryrefslogtreecommitdiff
path: root/renderer
diff options
context:
space:
mode:
Diffstat (limited to 'renderer')
-rw-r--r--renderer/model.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/renderer/model.go b/renderer/model.go
index 9ec4a9a..be777f6 100644
--- a/renderer/model.go
+++ b/renderer/model.go
@@ -18,6 +18,7 @@ func NewNavbarTemplateData(notificationCount int, user *mastodon.Account) *Navba
}
type TimelinePageTemplateData struct {
+ Title string
Statuses []*mastodon.Status
HasNext bool
NextLink string
@@ -27,9 +28,10 @@ type TimelinePageTemplateData struct {
NavbarData *NavbarTemplateData
}
-func NewTimelinePageTemplateData(statuses []*mastodon.Status, hasNext bool, nextLink string, hasPrev bool,
+func NewTimelinePageTemplateData(title string, statuses []*mastodon.Status, hasNext bool, nextLink string, hasPrev bool,
prevLink string, postContext model.PostContext, navbarData *NavbarTemplateData) *TimelinePageTemplateData {
return &TimelinePageTemplateData{
+ Title: title,
Statuses: statuses,
HasNext: hasNext,
NextLink: nextLink,