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. 34
      layouts/_default/section.html
  8. 4
      themes/anatole/layouts/_default/single.html

5
config.toml

@ -37,6 +37,11 @@ image = "image"
tag = "tags" tag = "tags"
category = "categories" category = "categories"
type = "type" type = "type"
likeof = "likeof"
inreplyto = "inreplyto"
repostof = "repostof"
posttype = "posttype"
slug = "slug"
[params] [params]
title = "J K 🇯🇵🏴󠁧󠁢󠁳󠁣󠁴󠁿" 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 posttype: likeof
slug: 5eb4004b slug: 5eb4004b
--- ---

6
content/response/_index.md

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

34
layouts/_default/section.html

@ -1,8 +1,9 @@
{{ define "main" }} {{ define "main" }}
<main> <main>
<div class="contents"> <div class="contents">
<span id="pagination-top">{{ partial "pagination.html" . }}</span> <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 }}"> {{ if not (eq .Type "response")}}<section data-post-type="{{ .Type }}" class="h-entry {{.Type }}">
<div class="p-author author" style="display:none;"> <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> <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>
</div>{{end}} </div>{{end}}
</aside> </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;"> <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> <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> </div>
<aside> <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 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> </article>
</aside> </aside>
</section><hr/> </section><hr/>
{{end}}
{{end}}
{{end}}
{{end}}
{{ end }} {{ end }}
<span id="pagination-bottom">{{ partial "pagination.html" . }}</span> <span id="pagination-bottom">{{ partial "pagination.html" . }}</span>
</div> </div>

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

@ -2,7 +2,7 @@
{{ if not (eq .Type "response")}} {{ if not (eq .Type "response")}}
<article class="post h-entry entry contents"> <article class="post h-entry entry contents">
<div class="author" style="display:none;"> <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>
<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> </div>
<div class="post-content">{{ with .Page.Params.Image }}{{ partial "taxonomy/image.html" . }}{{ end }}<h3 class="post-title p-name entry-title">{{ .Title }}</h3> <div class="post-content">{{ with .Page.Params.Image }}{{ partial "taxonomy/image.html" . }}{{ end }}<h3 class="post-title p-name entry-title">{{ .Title }}</h3>
<aside> <aside>
@ -39,8 +39,6 @@
{{- end }} {{- end }}
{{ end }} {{ end }}
</aside></div> </aside></div>
</div>
</article>{{end}} </article>{{end}}
{{end}} {{end}}