Hi,
I am trying to split a .Key value from an ordered post list.
{{ range .Data.Pages.GroupByDate "2006 Jan" }}
{{ .Key }}
<ul>
{{ range .Pages }}
<li>
<a href="{{ .Permalink }}">{{ .Title }}</a>
<div class="meta">{{ .Date.Format "Mon, Jan 2, 2006" }}</div>
</li>
{{ end }}
</ul>
{{ end }}
the Key outputs 2006 Jan, I need to split the .Key variable so that I can use the components separately in a html template. Pretty much line I have below. How would I do this please?
<div>
<div>2006</div>
<div>Jan</div>
</div>