Browse Source

trying to fix frontmatter formatting

master
jk 5 years ago
parent
commit
cac3cfbc53
  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. 12
      layouts/_default/section.html
  8. 2
      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"
+++

12
layouts/_default/section.html

@ -1,4 +1,5 @@
{{ 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>
@ -29,10 +30,8 @@
</div> </div>
</div>{{end}} </div>{{end}}
</aside> </aside>
</section><hr/>{{end}}
{{ if eq .Type "response"}}
{{range .Site.Data.response}}
{{range .entries}}
</section><hr/>
{{ else }}
<section data-post-type="{{ .posttype }}" data-post-id="{{ .slug }}"class="h-entry"> <section data-post-type="{{ .posttype }}" data-post-id="{{ .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>
@ -47,13 +46,10 @@
{{ if .inreplyto }}<a href="{{ .inreplyto }}" 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> {{ if .repostof }}<a href="{{ .repostof }}" class="link u-url"> post</a>{{ end }}</p>
<div class="e-content">{{ .content }}</div><br/> <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> <time class="dt-published" datetime="{{ dateFormat "02/01/2006 15:04 GMT" .date }}">{{ dateFormat "02/01/2006 15:04 GMT" .date }}</time>
</article> </article>
</aside> </aside>
</section><hr/>
{{end}}
{{end}}
</section><hr/>{{.posttype}}
{{end}} {{end}}
{{ end }} {{ end }}
<span id="pagination-bottom">{{ partial "pagination.html" . }}</span> <span id="pagination-bottom">{{ partial "pagination.html" . }}</span>

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

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