Browse Source

Scripted auto-commit on change (2020-05-07 14:40:48) by gitwatch.sh

master
jk 5 years ago
parent
commit
cffbc6253c
  1. 5
      config.toml
  2. 8
      content/note/5eb3fc69/index.md
  3. 8
      content/note/5eb3fdc3/index.md
  4. 3
      content/response/202005.md
  5. 1
      content/response/5eb4004b/index.md
  6. 6
      content/response/_index.md
  7. 30
      layouts/_default/section.html
  8. 2
      themes/anatole/layouts/_default/single.html

5
config.toml

@ -37,6 +37,11 @@ image = "image"
tag = "tags"
category = "categories"
type = "type"
likeof = "likeof"
inreplyto = "inreplyto"
repostof = "repostof"
posttype = "posttype"
slug = "slug"
[params]
title = "J K 🇯🇵🏴󠁧󠁢󠁳󠁣󠁴󠁿"

8
content/note/5eb3fc69/index.md

@ -1,8 +0,0 @@
---
date: '2020-05-07 13:17:45'
draft: false
likeof: 'https://jk.nipponalba.scot/note/5eb3c5ae/'
posttype: note
slug: 5eb3fc69
---

8
content/note/5eb3fdc3/index.md

@ -1,8 +0,0 @@
---
date: '2020-05-07 13:23:31'
draft: false
likeof: 'https://jk.nipponalba.scot/note/5eb3c5ae/'
posttype: note
slug: 5eb3fdc3
---

3
content/response/202005.md

@ -1,3 +0,0 @@
---
type: response
---

1
content/response/5eb4004b/index.md

@ -5,4 +5,3 @@ likeof: 'https://jk.nipponalba.scot/note/5eb3c5ae/'
posttype: likeof
slug: 5eb4004b
---

6
content/response/_index.md

@ -1,3 +1,3 @@
---
type: like-of
---
+++
Title = "Responses"
+++

30
layouts/_default/section.html

@ -1,4 +1,5 @@
{{ define "main" }}
<main>
<div class="contents">
<span id="pagination-top">{{ partial "pagination.html" . }}</span>
@ -29,33 +30,28 @@
</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 }}
<span id="pagination-bottom">{{ partial "pagination.html" . }}</span>
</div>
</main>

2
themes/anatole/layouts/_default/single.html

@ -39,8 +39,6 @@
{{- end }}
{{ end }}
</aside></div>
</div>
</article>{{end}}
{{end}}