Browse Source

adding the slightest of context to responses

master
jk 4 years ago
parent
commit
3a950d1c8b
  1. 6
      layouts/_default/section.html
  2. 6
      themes/nipponalba/layouts/_default/single.html

6
layouts/_default/section.html

@ -43,9 +43,9 @@
<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 "in-reply-to" }} replied to a <a href="{{ index .Params "in-reply-to" }}" class="u-like-of"> post</a>{{ end }}
{{ if eq .Params.posttype "like-of" }} liked a <a href="{{ index .Params "like-of" }}" class="u-like-of"> post</a>{{ end }}
{{ if eq .Params.posttype "repost-of" }} shared a <a href="{{ index .Params "repost-of" }}" class="u-repost-of"> post</a>{{ end }}</p>
{{ 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/>

6
themes/nipponalba/layouts/_default/single.html

@ -86,9 +86,9 @@
<a rel="author" class="u-author h-card" rel="me" href="https://jk.nipponalba.scot"><img src="/images/profile.jpg"/><span class="title">{{ .Site.Params.Title }}</span></a>
</section>
<section id="response-details"><br/><p>{{ .Site.Params.Title }}
{{ if eq .Params.posttype "in-reply-to" }} replied to a <a href="{{ index .Params "in-reply-to" }}" class="u-in-reply-to"> post</a>{{ end }}
{{ if eq .Params.posttype "like-of" }} liked a <a href="{{ index .Params "like-of" }}" class="u-like-of"> post</a>{{ end }}
{{ if eq .Params.posttype "repost-of" }} shared a <a href="{{ index .Params "repost-of" }}" class="u-repost-of"> post</a>{{ end }}</p>
{{ 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 "like-of" }} liked <a href="{{ index .Params "like-of" }}" class="u-like-of">{{ index .Params "like-of" }}</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 }}<span class="p-name p-content"><p>{{ .Content }}</p></span> {{end}}
</section>
{{ if not (eq .Type "article") }}<section class="info">