blogmngr

package
v0.0.0-...-684d454 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2022 License: BSD-2-Clause Imports: 15 Imported by: 0

Documentation

Index

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 CreateBlog(dirname string) bool

func CreateDraftAndEdit

func CreateDraftAndEdit(title string) bool

func CreateTemplates

func CreateTemplates(templatesdir string)

func FmtTemplate

func FmtTemplate(format string, p P) string

func GetWebsiteURL

func GetWebsiteURL() string

TODO refactor this

func IsBlog

func IsBlog() bool

func ReadTemplateFile

func ReadTemplateFile(fname string) string

func WriteToStatic

func WriteToStatic(fname string, content string)

Types

type Entry

type Entry struct {
	// contains filtered or unexported fields
}

func NewEntry

func NewEntry(newTitle string) *Entry

func NewEntryFromFile

func NewEntryFromFile(fpath string) *Entry

func (*Entry) Draft

func (e *Entry) Draft() string

func (*Entry) ToHTML

func (e *Entry) ToHTML() string

type P

type P map[string]interface{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL