Browse Source

trying to fix frontmatter formatting

master
jk 4 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. 18
      layouts/_default/section.html
  8. 4
      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"
+++

18
layouts/_default/section.html

@ -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,11 +30,9 @@
</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="{{ .posttype }}" data-post-id="{{ .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>
@ -47,14 +46,11 @@
{{ 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>
</article>
</aside>
</section><hr/>
{{end}}
{{end}}
{{end}}
</section><hr/>{{.posttype}}
{{end}}
{{ end }}
<span id="pagination-bottom">{{ partial "pagination.html" . }}</span>
</div>

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

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