hugo/tpl
Anthony Fok 3d60955e17 Use .Date.IsZero to skip unset date in embedded templates
Use `{{ if not .Date.IsZero }}` to print dates only when they are
defined.  This is to avoid things like

    <lastBuildDate>Mon, 01 Jan 0001 00:00:00 +0000</lastBuildDate>

and

    <lastmod>0001-01-01T00:00:00+00:00</lastmod>

showing up in index.xml (RSS) and sitemap.xml.

Pipe dates with ±hh:mm time zone through `safeHtml`
to prevent the `+` sign from turning into `&#43;`.

Also make some shuffling to avoid blank lines in the output.
2015-01-30 21:04:06 +01:00
..
template.go Revert "Quick-and-dirty way to print details of template errors" 2015-01-22 11:14:04 +01:00
template_embedded.go Use .Date.IsZero to skip unset date in embedded templates 2015-01-30 21:04:06 +01:00
template_test.go Add dateFormat template function 2015-01-22 00:08:30 +01:00