hugoDocs/content/variables-and-params/shortcode-git-and-hugo-variables.md

1.1 KiB

title linktitle description date publishdate lastmod categories tags draft weight aliases toc needsreview notesforauthors
Shortcode, Git, and Hugo Variables Shortcode, Git, and Hugo Variables 2017-02-01 2017-02-01 2017-02-01
variables and params
shortcodes
git
false 50
false true

Shortcodes

.Parent (reference to nested shortcodes paragraph in /shortcodes/) .IsNamedParams (reference to shortcodes) .Inner

Hugo Variables

Also available is .Hugo which has the following:

.Hugo.Generator Meta tag for the version of Hugo that generated the site. Highly recommended to be included by default in all theme headers so we can start to track the usage and popularity of Hugo. Unlike other variables it outputs a complete HTML tag, e.g. <meta name="generator" content="Hugo 0.15" />
.Hugo.Version The current version of the Hugo binary you are using e.g. 0.13-DEV
.Hugo.CommitHash The git commit hash of the current Hugo binary e.g. 0e8bed9ccffba0df554728b46c5bbf6d78ae5247
.Hugo.BuildDate The compile date of the current Hugo binary formatted with RFC 3339 e.g. 2002-10-02T10:00:00-05:00