Documentation ¶
Index ¶
- Constants
- func ArticleToHtml(a Article) string
- func TextNodeToHtml(t TextNode) string
- type Article
- type BlockQuote
- type CodeBlock
- type CommentBlock
- type Headline
- type OrderedList
- type Paragraph
- type Properties
- type Service
- func (s *Service) AtomFeed() (atom.Feed, error)
- func (s *Service) CheckoutRepository(destination string) error
- func (s *Service) CopyAssets(assetDir string) error
- func (s *Service) Fetch(key string) (Article, error)
- func (s *Service) FetchAll(includeDraft bool) ([]Article, error)
- func (s *Service) HomePage() string
- func (s *Service) Permalink(a Article) (string, error)
- func (s *Service) UpdateArticles(orgFile string) error
- type TextNode
- type UnorderedList
Constants ¶
View Source
const ( AssetBucket = "assets" PageBucket = "pages" )
Variables ¶
This section is empty.
Functions ¶
func ArticleToHtml ¶
func TextNodeToHtml ¶
Types ¶
type Article ¶
type Article struct { Title string Path string Children []TextNode CreatedAt time.Time UpdatedAt time.Time Draft bool }
func (*Article) CreatedAtString ¶
func (*Article) Introduction ¶
func (*Article) LastUpdate ¶
func (*Article) UrlEncodedTitle ¶
type BlockQuote ¶
type BlockQuote struct {
Content string
}
func (*BlockQuote) GetChildren ¶
func (cb *BlockQuote) GetChildren() []TextNode
func (*BlockQuote) GetContent ¶
func (cb *BlockQuote) GetContent() string
type CommentBlock ¶
type CommentBlock struct {
Content string
}
func NewCommentBlock ¶
func NewCommentBlock() *CommentBlock
func (*CommentBlock) GetChildren ¶
func (cb *CommentBlock) GetChildren() []TextNode
func (*CommentBlock) GetContent ¶
func (cb *CommentBlock) GetContent() string
type OrderedList ¶
type OrderedList struct {
Children []TextNode
}
func NewOrderedList ¶
func NewOrderedList() *OrderedList
func (*OrderedList) GetChildren ¶
func (ul *OrderedList) GetChildren() []TextNode
func (*OrderedList) GetContent ¶
func (ul *OrderedList) GetContent() string
type Paragraph ¶
type Paragraph struct {
Content string
}
func NewParagraph ¶
func (*Paragraph) GetChildren ¶
func (*Paragraph) GetContent ¶
type Properties ¶
func (*Properties) GetChildren ¶
func (p *Properties) GetChildren() []TextNode
func (*Properties) GetContent ¶
func (p *Properties) GetContent() string
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) CheckoutRepository ¶
func (*Service) CopyAssets ¶
func (*Service) UpdateArticles ¶
type UnorderedList ¶
type UnorderedList struct {
Children []TextNode
}
func NewUnorderedList ¶
func NewUnorderedList() *UnorderedList
func (*UnorderedList) GetChildren ¶
func (ul *UnorderedList) GetChildren() []TextNode
func (*UnorderedList) GetContent ¶
func (ul *UnorderedList) GetContent() string
Click to show internal directories.
Click to hide internal directories.