You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
491 B
26 lines
491 B
3 years ago
|
package content
|
||
|
|
||
3 years ago
|
import (
|
||
3 years ago
|
"fmt"
|
||
|
|
||
3 years ago
|
"code.tokarch.uk/mainnika/nikita-tokarch-uk/pkg/ghost/data"
|
||
3 years ago
|
)
|
||
|
|
||
3 years ago
|
// Blog content data
|
||
|
type Blog struct {
|
||
|
_ interface{} `template:"blog.go.tmpl"`
|
||
3 years ago
|
data.Meta
|
||
|
Pinned []data.Post
|
||
|
Posts []data.Post
|
||
3 years ago
|
}
|
||
3 years ago
|
|
||
|
// Title returns blog content title
|
||
|
func (i Blog) Title() string {
|
||
|
return fmt.Sprintf("... %d of %d", i.Meta.Pagination.Page, i.Meta.Pagination.Pages)
|
||
|
}
|
||
|
|
||
|
// Description returns blog content description
|
||
|
func (i Blog) Description() string {
|
||
|
return "TODO:"
|
||
|
}
|