files

package
v0.57.2 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2019 License: Apache-2.0 Imports: 4 Imported by: 24

Documentation

Index

Constants

View Source
const (
	ContentClassLeaf    = "leaf"
	ContentClassBranch  = "branch"
	ContentClassFile    = "zfile" // Sort below
	ContentClassContent = "zcontent"
)
View Source
const (
	ComponentFolderArchetypes = "archetypes"
	ComponentFolderStatic     = "static"
	ComponentFolderLayouts    = "layouts"
	ComponentFolderContent    = "content"
	ComponentFolderData       = "data"
	ComponentFolderAssets     = "assets"
	ComponentFolderI18n       = "i18n"

	FolderResources = "resources"
)

Variables

Functions

func ClassifyContentFile

func ClassifyContentFile(filename string) string

func IsComponentFolder

func IsComponentFolder(name string) bool

func IsContentExt

func IsContentExt(ext string) bool

func IsContentFile

func IsContentFile(filename string) bool

func ResolveComponentFolder

func ResolveComponentFolder(filename string) string

ResolveComponentFolder returns "content" from "content/blog/foo.md" etc.

Types

This section is empty.

Jump to

Keyboard shortcuts

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