mirror of
https://github.com/mainnika/nikita-tokarch-uk.git
synced 2026-05-25 01:03:35 +00:00
Add more docs
This commit is contained in:
@@ -4,7 +4,10 @@ package ghost
|
||||
|
||||
// Client is the ghost backend client
|
||||
type Client interface {
|
||||
// GetPosts returns blog posts according to query params
|
||||
GetPosts(queryParams ...Modifier) (posts *Posts, err error)
|
||||
// GetPostBySlug returns a single post by its slug title and query params
|
||||
GetPostBySlug(slug string, queryParams ...Modifier) (posts *Posts, err error)
|
||||
// GetPageBySlug returns a single page by its slug title and query params
|
||||
GetPageBySlug(slug string, queryParams ...Modifier) (pages *Pages, err error)
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@ package templates
|
||||
|
||||
import "html/template"
|
||||
|
||||
// UseFuncs returns a func map with template helpers functions
|
||||
func UseFuncs() template.FuncMap {
|
||||
return template.FuncMap{
|
||||
"add": func(i int) int {
|
||||
|
||||
Reference in New Issue
Block a user