Yaml Front Matter. Hugo allows you to add front matter in yaml toml or json to your content files. Php 16013 yaml 210 markdown-parser 28 Repo. Front matter allows you to keep metadata attached to an instance of a content type ie embedded inside a content fileand is one of the many features that gives Hugo its strength. An implementation of YAML Front matter for PHP.
YAML targets many of the same communications applications as Extensible Markup Language XML but has a minimal syntax which intentionally differs from SGML. Here is a basic example–. The front matter is where Jekyll starts to get really cool. Locally assigned front matter values override things further up the layout chain. First the content of each input document is scanned for a line that consists entirely of the delimiter character or - by default or the delimiter string. An implementation of YAML Front matter for PHP.
Npm install yaml-front-matter -g Node or client with module bundler webpack or browsify.
You can use other formats too. Hugo allows you to add front matter in yaml toml or json to your content files. The front matter must be the first thing in the file and must take the form of valid YAML set between triple-dashed lines. The front matter must be the first thing in the file and must take the form of valid YAML set between triple-dashed lines. You can use front matter to set variables for the page—my_number. Leaf template front matter takes precedence over layout front matter.