Templates
A template is an HTML file with template actions, located within the layouts directory of a project, theme, or module. Visit the topics below, in the order presented, to understand template selection and creation.
A template is an HTML file with template actions, located within the layouts directory of a project, theme, or module. Visit the topics below, in the order presented, to understand template selection and creation.
html/template
and text/template
libraries as the basis for the templating.
Read More »
readDir
and readFile
functions make it easy to traverse your project’s directory structure and write file contents to your templates.
Read More »
printf
function to debug your Hugo templates. These snippets provide a quick and easy visualization of the variables available to you in different contexts.
Read More »