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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
|
{{ define "main" }} <section class="stream h-feed"> <section class="author" style="display:none;"> <a rel="author" class="p-author h-card" rel="me" href="https://jk.nipponalba.scot">{{ .Site.Params.Title }}<img src="/images/profile.jpg"/></a> </section> <span id="pagination-top">{{ partial "pagination.html" . }}</span> {{ range .Paginator.Pages}} {{ if not (eq .Type "response")}}<section data-post-type="{{ .Type }}" class="feed h-entry {{.Type }}"> <section class="author" style="display:none;"> <a rel="author" class="u-author h-card" rel="me" href="https://jk.nipponalba.scot">{{ .Site.Params.Title }}<img src="/images/profile.jpg"/></a> </section> <article class="index_content"> {{if eq .Type "article" }}<br/>{{ with .Page.Params.Image }}{{ partial "taxonomy/image.html" . }}{{ end }}<a href="{{ .Permalink }}" class="u-url"><h3 class="p-name entry-title">{{ .Title }}</h3></a><b>{{ .Description }}</b>{{ end }} {{ if eq .Type "article" }}<section class="info"> <span class="blogs_span">{{ with .Page.Params.Blog }}Blog: {{ partial "taxonomy/blog.html" . }}{{ end }}</span><span class="info-date"><time class="dt-published" datetime="{{ .Date.Format "2 Jan 2006 15:04 GMT" }}">{{ .Date.Format "02/01/2006 15:04 GMT" }}</time></span><br/> <span class="categories_span">{{ with .Page.Params.category }}Categories: {{ partial "taxonomy/categories.html" . }}{{ end }}</span><span class="reading-time">{{ .ReadingTime }}-minute read</span><br/> <span class="tags_span">{{ with .Page.Params.tag }}Tags: {{ partial "taxonomy/tags.html" . }}{{ end }}</span> </section>{{ end }} <section class="e-content"> {{ .Content }} {{ if eq .Type "photo"}} <section class="photogrid"> {{ range .Page.Params.Photo }} <a class="u-url" href="{{ . }}"> <picture> <source media="max-width:960px" srcset="{{ . }}"> <source media="max-width:480px" srcset="{{ replace . "800." "300."}}"> <img class="u-photo thumb" src="{{ replace . "800." "300."}}" srcset="{{ . }} 960w, {{ replace . "800." "300."}} 480w"/> </picture> </a> {{end}} </section> {{end}} </section><br/> {{ if not (eq .Type "article") }}<section class="info"> <span class="categories_span">{{ with .Page.Params.category }}Categories: {{ partial "taxonomy/categories.html" . }}{{ end }}</span><span class="info-date"><a href="{{ .Permalink }}" class="u-url"><time class="dt-published" datetime="{{ .Date.Format "2 Jan 2006 15:04 GMT" }}">{{ .Date.Format "02/01/2006 15:04 GMT" }}</time></a></span><br/> </section>{{ end }} </article> </section><hr/> {{ else }} <section data-post-type="{{ .Params.posttype }}" data-post-id="{{ .Params.slug }}" class="h-entry" id="response"> <section class="author" style="display:none;"> <a rel="author" class="p-author h-card" rel="me" href="https://jk.nipponalba.scot"><img src="/images/profile.jpg"/><div class="title">{{ .Site.Params.Title }}</div></a> </section> <article class="h-cite"><p>{{ .Site.Params.Title }} {{ if eq .Params.posttype "like-of" }} liked <a href="{{ index .Params "like-of" }}" class="u-like-of">{{ index .Params "like-of" }}</a>{{ end }} {{ if eq .Params.posttype "in-reply-to" }} replied to <a href="{{ index .Params "in-reply-to" }}" class="u-in-reply-to">{{ index .Params "in-reply-to" }}</a>{{ end }} {{ if eq .Params.posttype "repost-of" }} shared <a href="{{ index .Params "repost-of" }}" class="u-repost-of">{{ index .Params "repost-of" }}</a>{{ end }}</p> {{ if .Content }}<section class="p-name p-content">{{ .Content }}</section>{{end}} {{ if not (eq .Type "article") }}<section class="info"> <span class="categories_span">{{ with .Page.Params.category }}Categories: {{ partial "taxonomy/categories.html" . }}{{ end }}</span><span class="info-date"><a href="{{ .Permalink }}" class="u-url"><time class="dt-published" datetime="{{ .Date.Format "2 Jan 2006 15:04 GMT" }}">{{ .Date.Format "02/01/2006 15:04 GMT" }}</time></a></span><br/> </section>{{ end }} </article> </section><hr/> {{end}} {{ end }} <span id="pagination-bottom">{{ partial "pagination.html" . }}</span> </section>
{{ end }}
|