Documentation ¶
Index ¶
Constants ¶
View Source
const ( ComponentFolderArchetypes = "archetypes" ComponentFolderStatic = "static" ComponentFolderLayouts = "layouts" ComponentFolderContent = "content" ComponentFolderData = "data" ComponentFolderAssets = "assets" ComponentFolderI18n = "i18n" FolderResources = "resources" )
Variables ¶
View Source
var ( ComponentFolders = []string{ ComponentFolderArchetypes, ComponentFolderStatic, ComponentFolderLayouts, ComponentFolderContent, ComponentFolderData, ComponentFolderAssets, ComponentFolderI18n, } )
Functions ¶
func IsComponentFolder ¶
func IsContentExt ¶
func IsContentFile ¶
func ResolveComponentFolder ¶
ResolveComponentFolder returns "content" from "content/blog/foo.md" etc.
Types ¶
type ContentClass ¶ added in v0.65.0
type ContentClass string
const ( ContentClassLeaf ContentClass = "leaf" ContentClassBranch ContentClass = "branch" ContentClassFile ContentClass = "zfile" // Sort below ContentClassContent ContentClass = "zcontent" )
func ClassifyContentFile ¶
func ClassifyContentFile(filename string) ContentClass
func (ContentClass) IsBundle ¶ added in v0.65.0
func (c ContentClass) IsBundle() bool
Click to show internal directories.
Click to hide internal directories.