Squashed 'themes/codex/' content from commit da2d16a
git-subtree-dir: themes/codex git-subtree-split: da2d16a4f95fc37e71548dfc139d51e22ebb09bd
This commit is contained in:
27
layouts/_default/list.html
Normal file
27
layouts/_default/list.html
Normal file
@@ -0,0 +1,27 @@
|
||||
{{ define "styles" }}
|
||||
{{ $.Scratch.Set "style_opts" (dict "src" "scss/pages/posts.scss" "dest" "css/posts.css") }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
|
||||
{{ $dateFormat := .Site.Params.dateFormat | default "Jan 2 2006" }}
|
||||
|
||||
<div class="post-list__container">
|
||||
<ul class="post-list">
|
||||
{{ range .Pages }}
|
||||
<li class="post">
|
||||
<div class="post__header">
|
||||
<time class="post__date" datetime="{{ .Date }}"
|
||||
>{{ .Date.Format $dateFormat }}</time>
|
||||
<h2 class="post__title">
|
||||
<a href="{{.RelPermalink}}">{{ .Title }}</a>
|
||||
</h2>
|
||||
{{ partial "tags.html" .}}
|
||||
</div>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ partial "browse-by-tag.html" .}}
|
||||
</div>
|
||||
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user