Documentation ¶
Index ¶
- Constants
- func BuildStatic(autodelete bool)
- func CreateBlog(dirname string) bool
- func CreateDraftAndEdit(title string) bool
- func CreateTemplates(templatesdir string)
- func FmtTemplate(format string, p P) string
- func GetWebsiteURL() string
- func IsBlog() bool
- func ReadTemplateFile(fname string) string
- func WriteToStatic(fname string, content string)
- type Entry
- type P
Constants ¶
View Source
const EntryLi = `<li><a href="%s">%s</a> <small>%s</small>
`
View Source
const RssArticle = ` <item>
<title>{{.title}}</title>
<link>{{.link}}</link>
<description>{{.desc}}</description>
</item>
`
Variables ¶
This section is empty.
Functions ¶
func BuildStatic ¶
func BuildStatic(autodelete bool)
func CreateBlog ¶
func CreateDraftAndEdit ¶
func CreateTemplates ¶
func CreateTemplates(templatesdir string)
func FmtTemplate ¶
func ReadTemplateFile ¶
func WriteToStatic ¶
Types ¶
type Entry ¶
type Entry struct {
// contains filtered or unexported fields
}
func NewEntryFromFile ¶
Click to show internal directories.
Click to hide internal directories.