source for sakino.kelbie.scot
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

58 lines
3.0 KiB

{{ define "main" }}
<section class="archive">
<section class="archive-listing">
<span class="list-title">{{if not (eq .Name "Blog")}}{{ .Name }}{{ end }}{{if eq .Name "Blog"}}All Blogs{{ end }} <a href="{{ .Permalink }}index.xml"><i class="fa fa-rss fa-2x fa-fw" aria-hidden="true" title="{{ .Name }} RSS feed"></i></a></span>
{{ if eq .Type "article" "blog"}}<ul class="listing">{{ range .Data.Pages.GroupByDate "2006" }}
{{ range .Pages }}
<li class="archive-listing-item">
{{ if eq .Type "blog"}}
<span class="list-blog"><a class="u-url" href="{{ .Permalink }}" title="{{ .Title }}">
{{ $image := (replace .Title " " "") }}
{{ $image := print "/images/" $image ".jpg" }}
<img class="banner" src="{{ ( $image | urlize ) | relLangURL }}" />
<span class="p-name entry-title">{{ .Title }}</span></a>
</span>
{{end}}
{{ if eq .Type "article"}}
<span class="list-article h-entry entry"><a class="u-url" href="{{ .Permalink }}">
{{ with .Page.Params.Image }}{{ partial "image.html" . }}{{ end }}<span class="p-name entry-title">{{ .Title }}</span>
<section class="e-content">{{ .Description }}</section>
</a></span>
{{end}}
</li>
{{ end }}{{end}}</ul>{{else}}
<ul class="listing">
{{ range .Pages }}
<li class="archive-listing-item">
{{ if not (eq .Type "note" "photo") }}
{{ if eq .Type "article"}}
<span class="list-article h-entry entry"><a class="u-url" href="{{ .Permalink }}">
{{ with .Page.Params.Image }}{{ partial "image.html" . }}{{ end }}<span class="p-name entry-title">{{ .Title }}</span>
<section class="e-content">{{ .Description }}</section>
</a></span>
{{else}}<span class="listing-post"><a href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</span>{{end}}{{else}}
{{ if eq .Type "note"}}
<span class="list-category"><a class="u-url" href="{{ .Permalink }}" title="{{ .Title }}">
<span class="note-banner">{{ humanize .Type }}</span>
<span class="p-summary e-content"><p>{{ .Summary }}</p></span></a>
</span>{{else}}
<article class="list-category index-photo h-entry entry"><a class="u-url" href="{{ .Permalink }}">
<section class="e-content">
<section class="photos">
{{ range first 1 .Page.Params.Photo }}
{{ if isset . "value" }}
<img class="u-photo thumb" src="{{ replace .value "800." "300."}}" alt="{{ .alt }}"/>
{{ else }}
<img class="u-photo thumb" src="{{ replace . "800." "300."}}" alt="Alt not yet added, will fix!"/>
{{ end }}
{{end}}
</section>
</section>
</a></article>{{end}}{{end}}
</li>
{{ end }}</ul>
{{ end }}
</section>
</section>
{{ end }}