Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlogManager ¶
type BlogManager struct {
// contains filtered or unexported fields
}
func NewBlogManager ¶
func NewBlogManager() BlogManager
func (*BlogManager) GetBlogPostBySlug ¶
func (m *BlogManager) GetBlogPostBySlug(slug string) *BlogPost
The argument is the string part of the URL after /blog/someslug, which will retrieve the matching blogpost based on slug value in the markdown file.
func (*BlogManager) GetBlogPostsByTag ¶
func (m *BlogManager) GetBlogPostsByTag(tag string) *BlogPosts
Gets all blogposts with a specific tag
func (*BlogManager) ListBlogPosts ¶
func (m *BlogManager) ListBlogPosts() *BlogPosts
Returns an already sorted list of posts
func (*BlogManager) LoadBlogPosts ¶
func (m *BlogManager) LoadBlogPosts() error
Read all blog markdown files from the embedded fs which includes all files in ./posts
Click to show internal directories.
Click to hide internal directories.