|
|
@ -1,8 +1,9 @@ |
|
|
|
{{ define "main" }} |
|
|
|
|
|
|
|
<main> |
|
|
|
<div class="contents"> |
|
|
|
<span id="pagination-top">{{ partial "pagination.html" . }}</span> |
|
|
|
{{ range .Paginator.Pages }} |
|
|
|
{{ range .Paginator.Pages}} |
|
|
|
{{ if not (eq .Type "response")}}<section data-post-type="{{ .Type }}" class="h-entry {{.Type }}"> |
|
|
|
<div class="p-author author" style="display:none;"> |
|
|
|
<a rel="author" class="p-name u-url u-uid" rel="me" href="https://jk.nipponalba.scot">{{ .Site.Params.Title }}</a> |
|
|
@ -29,32 +30,27 @@ |
|
|
|
</div> |
|
|
|
</div>{{end}} |
|
|
|
</aside> |
|
|
|
</section><hr/>{{end}} |
|
|
|
{{ if eq .Type "response"}} |
|
|
|
{{range .Site.Data.response}} |
|
|
|
{{range .entries}} |
|
|
|
<section data-post-type="{{ .posttype }}" data-post-id="{{ .slug }}"class="h-entry"> |
|
|
|
</section><hr/> |
|
|
|
{{ else }} |
|
|
|
<section data-post-type="{{ .Params.posttype }}" data-post-id="{{ .Params.slug }}"class="h-entry"> |
|
|
|
<div 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> |
|
|
|
</div> |
|
|
|
<aside> |
|
|
|
<article class="u-{{ .posttype }} h-cite"> |
|
|
|
{{ if .likeof }}<p> Liked {{ end }} |
|
|
|
{{ if .inreplyto }}<p> Replied to {{ end }} |
|
|
|
{{ if .repostof }}<p>Shared {{ end }} |
|
|
|
<article class="u-{{ .Params.posttype }} h-cite"> |
|
|
|
{{ if .Params.inreplyto }}<p> Replied to {{ end }} |
|
|
|
{{ if .Params.likeof }}<p> Liked {{ end }} |
|
|
|
{{ if .Params.repostof }}<p>Shared {{ end }} |
|
|
|
someone's |
|
|
|
{{ if .likeof }}<a href="{{ .likeof }}" class="link u-url"> post</a>{{ end }} |
|
|
|
{{ if .inreplyto }}<a href="{{ .inreplyto }}" class="link u-url"> post</a>{{ end }} |
|
|
|
{{ if .repostof }}<a href="{{ .repostof }}" class="link u-url"> post</a>{{ end }}</p> |
|
|
|
<div class="e-content">{{ .content }}</div><br/> |
|
|
|
|
|
|
|
<time class="dt-published" datetime="{{ dateFormat "02/01/2006 15:04 GMT" .date }}">{{ dateFormat "02/01/2006 15:04 GMT" .date }}</time> |
|
|
|
{{ if .Params.likeof }}<a href="{{ .Params.likeof }}" class="link u-url"> post</a>{{ end }} |
|
|
|
{{ if .Params.inreplyto }}<a href="{{ .Params.inreplyto }}" class="link u-url"> post</a>{{ end }} |
|
|
|
{{ if .Params.repostof }}<a href="{{ .Params.repostof }}" class="link u-url"> post</a>{{ end }}</p> |
|
|
|
{{ if .Content }}<div class="e-content">{{ .Content }}</div><br/> {{end}} |
|
|
|
<time class="dt-published" datetime="{{ dateFormat "02/01/2006 15:04 GMT" .Params.date }}">{{ dateFormat "02/01/2006 15:04 GMT" .Params.date }}</time> |
|
|
|
</article> |
|
|
|
</aside> |
|
|
|
</section><hr/> |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
{{ end }} |
|
|
|
<span id="pagination-bottom">{{ partial "pagination.html" . }}</span> |
|
|
|
</div> |
|
|
|