35 lines
1 KiB
HTML
35 lines
1 KiB
HTML
{{ define "main-class" }}--section layouts-portfolio-section{{ end }}
|
|
|
|
{{ define "main-header" }}
|
|
<header class="site-content__header">
|
|
<h2 class="page-title">{{ .Title | safeHTML }}.
|
|
{{ range .AlternativeOutputFormats -}}
|
|
<a href="{{ .RelPermalink }}">
|
|
<img class="feed-icon" src="{{ $.Site.Params.feedIcon }}">
|
|
</a>
|
|
{{ end }}
|
|
</h2>
|
|
{{ .Content }}
|
|
|
|
{{ if ne .Type "portfolio" }}
|
|
<nav class="page-header__minor-links">
|
|
{{ partial "years-list.html" . }}
|
|
</nav>
|
|
{{ end }}
|
|
</header>
|
|
{{ end }}
|
|
|
|
{{ define "main-body" }}
|
|
{{ if eq .Type "portfolio" }}
|
|
<article class="site-content__body site-content__body--list">
|
|
<ul class="site-content__sections-list">
|
|
{{ range .Sections.ByWeight }}
|
|
{{ if eq .Weight 10 }}<hr>{{ end }}
|
|
<li><a href="{{ .RelPermalink }}"><h3>{{ .Title }}</h3></a> <p>({{ len .Pages }})</p></li>
|
|
{{ end }}
|
|
</ul>
|
|
</article>
|
|
{{ else }}
|
|
{{ partial "items-grid.html" . }}
|
|
{{ end }}
|
|
{{ end }}
|