package constants
import "github.com/gohugoio/hugo/common/constants"
Index ¶
- Constants
- func IsFieldRelOrPermalink(name string) bool
- func IsResourceTransformationPermalinkHash(name string) bool
Constants ¶
const ( // IDs for remote errors in tpl/data. ErrRemoteGetJSON = "error-remote-getjson" ErrRemoteGetCSV = "error-remote-getcsv" WarnFrontMatterParamsOverrides = "warning-frontmatter-params-overrides" WarnRenderShortcodesInHTML = "warning-rendershortcodes-in-html" WarnGoldmarkRawHTML = "warning-goldmark-raw-html" )
Error/Warning IDs. Do not change these values.
const ( FieldRelPermalink = "RelPermalink" FieldPermalink = "Permalink" )
Field/method names with special meaning.
const (
ResourceTransformationFingerprint = "fingerprint"
)
Resource transformations.
Functions ¶
func IsFieldRelOrPermalink ¶
IsFieldRelOrPermalink returns whether the given name is a RelPermalink or Permalink.
func IsResourceTransformationPermalinkHash ¶
IsResourceTransformationPermalinkHash returns whether the given name is a resource transformation that changes the permalink based on the content.
Source Files ¶
- Version
- v0.144.2 (latest)
- Published
- Feb 19, 2025
- Platform
- linux/amd64
- Last checked
- 13 hours ago –
Tools for package owners.