portfoligor/layouts/_default/section.html

32 lines
737 B
HTML

{{ define "main" }}
<header>
<h1>{{.Title}}</h1>
</header>
<!-- "{{.Content}}" pulls from the markdown content of the corresponding _index.md -->
<section>
<header>
{{.Content }}
</header>
<section class="posts-list">
{{ range .Pages.ByPublishDate.Reverse }}
<article class="posts-list">
<article>
<a href="{{ .Permalink }}">
{{.Title}}
</a>
</article>
<footer>
{{ .PublishDate.Format "2006-01-02" }}
{{ with .Params.categories }}
{{ range . }}
/ <a href="{{ "categories" | absURL}}/{{ . | urlize }}">{{ . }}</a>
{{ end }}
{{ end }}
</footer>
</article>
{{ end }}
</section>
</section>
{{ end }}