portfoligor/layouts/_default/section.html

23 lines
548 B
HTML

{{ define "main" }}
<header>
<h1>{{.Title}}</h1>
</header>
<!-- "{{.Content}}" pulls from the markdown content of the corresponding _index.md -->
{{.Content }}
{{ range .Pages }}
<article>
<a href="{{ .Permalink }}">
{{.Title}}
</a>
&mdash; {{ .PublishDate.Format "2006-01-02" }}
{{ with .Params.categories }}
{{ range . }}
&mdash; <a href="{{ "categories" | absURL}}/{{ . | urlize }}">{{ . }}</a>
{{ end }}
{{ end }}
</article>
{{ end }}
</ul>
{{ end }}