Documentation ¶
Index ¶
Constants ¶
View Source
const ( // The NPM package.json "template" file. FilenamePackageHugoJSON = "package.hugo.json" // The NPM package file. FilenamePackageJSON = "package.json" FilenameHugoStatsJSON = "hugo_stats.json" )
View Source
const ( ComponentFolderArchetypes = "archetypes" ComponentFolderStatic = "static" ComponentFolderLayouts = "layouts" ComponentFolderContent = "content" ComponentFolderData = "data" ComponentFolderAssets = "assets" ComponentFolderI18n = "i18n" FolderResources = "resources" FolderJSConfig = "_jsconfig" // Mounted below /assets with postcss.config.js etc. NameContentData = "_content" )
Variables ¶
View Source
var ( JsConfigFolderMountPrefix = filepath.Join(ComponentFolderAssets, FolderJSConfig) ComponentFolders = []string{ ComponentFolderArchetypes, ComponentFolderStatic, ComponentFolderLayouts, ComponentFolderContent, ComponentFolderData, ComponentFolderAssets, ComponentFolderI18n, } )
Functions ¶
func IsComponentFolder ¶
func IsContentDataExt ¶ added in v0.126.0
Supported data file extensions for _content.* files.
func IsGoTmplExt ¶ added in v0.126.0
func ResolveComponentFolder ¶
ResolveComponentFolder returns "content" from "content/blog/foo.md" etc.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.