Documentation
¶
Index ¶
- func CopyExtraFiles(inDir string, outDir string, files map[string]bool) error
- func EnsureDir(dirName string) error
- func GetFileBase(f string) string
- func GetNavCrumbs(f string, inDir string, isExt bool) ([]string, []string)
- func IsEntryPresent(f string) (bool, error)
- func IsFileExist(f string) (bool, error)
- func RemoveContents(contents []string) error
- func RemoveExtension(f string) string
- func RemoveHiddenFiles(inDir string, files []string) []string
- func ReorderFiles(files []string) []string
- func ResolveDate(d string) (string, string, error)
- func ResolveHref(f string, inDir string, prefixSlash bool) string
- func ResolveTitle(mt string, fn string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyExtraFiles ¶
Move extra files like assets (images, fonts, css) over to output, preserving the file structure.
func GetNavCrumbs ¶ added in v1.1.1
If link is "/a/b/c/file.md"
crumbs is {"a", "b", "c"}
crumbLinks is {"/a/index.html", "/a/b/index.html", "a/b/c/index.html"}
func IsEntryPresent ¶
Check for markdown files under directory
func IsFileExist ¶
Return true/false if a path exists/doesn't exist
func RemoveHiddenFiles ¶ added in v1.1.1
Remove hidden files from slice of files
func ReorderFiles ¶
Move all index.md from files to the end so they are processed last
func ResolveDate ¶
Resolve the date d from format YYYY-MM-DD Returns a pretty date and a machine date
func ResolveHref ¶
Return the href inDir/a/b/c/file.md -> a/b/c/file
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.