Skip to content

Instantly share code, notes, and snippets.

@zackfern
Created March 23, 2018 19:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zackfern/46b770ba93e0f782cc306237893fc7de to your computer and use it in GitHub Desktop.
Save zackfern/46b770ba93e0f782cc306237893fc7de to your computer and use it in GitHub Desktop.
Relevant files for Hugo support forum post regarding timezone strings.

+++ categories = ["Microblog"] date = "2018-03-06T11:58:59-08:00" photo_url = "//zackfern-blog-assets.s3.amazonaws.com/2018-03-06-Beach-Boomer.jpg" +++

Beach dog.

+++ categories = ["Microblog"] date = "2018-03-22T12:15:03-08:00" photo_url = "//zackfern-blog-assets.s3.amazonaws.com/2018-03-22-Empty-Beach.jpg" +++

The beach was empty today! It turns out that's because it was closed. 🙈 (Full Size Panorama)

> hugo env
Hugo Static Site Generator v0.37.1 darwin/amd64 BuildDate:
GOOS="darwin"
GOARCH="amd64"
GOVERSION="go1.10"
<div class="meta">
<a href="{{ .Permalink }}" class="u-url">
{{ if not .Date.IsZero }}
<time class="dt-published" datetime='{{ .PublishDate.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}'>
{{ if .PublishDate.Hour }}
{{ .PublishDate.Format .Site.Params.DateFormat }}
{{ else }}
{{ .PublishDate.Format .Site.Params.DateFormatWithoutTime }}
{{ end }}
</time>
{{ end }}
</a>
{{ if isset .Params "categories" }}
&middot;
<span class="categories">
Posted in
{{ range .Params.Categories }}
<a href='{{ print "categories/" (. | urlize | lower) | absURL }}' class="p-category">{{ . | humanize }}</a>
{{ end }}
</span>
{{ end }}
{{ if isset .Params "tags" }}
<span class="tags">
{{ range .Params.Tags }} {{ . }} {{ end }}
</span>
{{ end }}
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment