|
|
@ -1,6 +1,8 @@ |
|
|
|
package content |
|
|
|
package content |
|
|
|
|
|
|
|
|
|
|
|
import ( |
|
|
|
import ( |
|
|
|
|
|
|
|
"fmt" |
|
|
|
|
|
|
|
|
|
|
|
"code.tokarch.uk/mainnika/nikita-tokarch-uk/frontend/ghost" |
|
|
|
"code.tokarch.uk/mainnika/nikita-tokarch-uk/frontend/ghost" |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
@ -11,3 +13,13 @@ type Blog struct { |
|
|
|
Pinned []ghost.Post |
|
|
|
Pinned []ghost.Post |
|
|
|
Posts []ghost.Post |
|
|
|
Posts []ghost.Post |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 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:" |
|
|
|
|
|
|
|
} |
|
|
|