initial commit
This commit is contained in:
commit
f92932b947
44 changed files with 851 additions and 0 deletions
31
layouts/section/posts.html
Normal file
31
layouts/section/posts.html
Normal file
|
@ -0,0 +1,31 @@
|
|||
{{ partial "site_header.html" . }}
|
||||
{{ partial "page_header.html" . }}
|
||||
|
||||
<main class="content">
|
||||
<article class="post-groups">
|
||||
<div class="post-group">
|
||||
{{ range .Data.Pages.GroupByDate "2006" }}
|
||||
<div class="post-group-item">
|
||||
<h3>{{ .Key }}</h3>
|
||||
<ul>
|
||||
{{ range .Pages }}
|
||||
<li>
|
||||
{{ if (not (isset .Params "externalurl")) }}
|
||||
<a rel="full-article" href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
on <time datetime="{{ .Date }}" pubdate="">{{ .Date.Format "January 2" }}</time>
|
||||
{{ else }}
|
||||
<a rel="remote-article" href="{{ .Params.externalurl }}">{{ .Title }} →</a>
|
||||
on
|
||||
<a href="{{ .Permalink }}"><time datetime="{{ .Date }}" pubdate="">{{ .Date.Format "January 2" }}</time></a>
|
||||
{{ end }}
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</article>
|
||||
</main>
|
||||
|
||||
{{ partial "page_footer.html" . }}
|
||||
{{ partial "site_footer.html" . }}
|
Loading…
Add table
Add a link
Reference in a new issue