mirror of
https://github.com/ItsDrike/itsdrike.com.git
synced 2024-11-10 05:59:41 +00:00
19 lines
636 B
HTML
19 lines
636 B
HTML
{{ define "main" }}
|
|
{{ partial "content.html" . }}
|
|
|
|
<!--Group posts by months-->
|
|
{{ range .Pages.GroupByDate "2006-01" }}
|
|
{{ $month := print .Key "-01"}}
|
|
{{ $display := dateFormat "2006-01" $month }}
|
|
<h3 id="{{ $display }}">
|
|
<a href="#{{ $display }}">
|
|
<time datetime="{{ $month }}" title='{{ dateFormat "January 2006" $month }}'>{{ $display }}</time>
|
|
</a>
|
|
</h3>
|
|
<!--List posts belonging to current month -->
|
|
{{ range (sort .Pages "Date" "desc") }}
|
|
{{ partial "list_item.html" . }}
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ end }}
|