Compare commits
9 Commits
8191679266
...
main
Author | SHA1 | Date | |
---|---|---|---|
eec3c13e9a | |||
5f5c7ecc76 | |||
338e7e8b9e | |||
a08f147d48 | |||
f577773958 | |||
593e6611c2 | |||
38263a5906 | |||
3fb8d959d5 | |||
9083f3aba7 |
@ -1,21 +0,0 @@
|
||||
{
|
||||
"version": "https://jsonfeed.org/version/1.1",
|
||||
"title": "{{ .Site.Title }} - Notes Feed",
|
||||
"home_page_url": "{{ .Site.BaseURL }}",
|
||||
"feed_url": "{{ .Permalink }}",
|
||||
"description": "A feed of my notes from {{ .Site.Title }}",
|
||||
"items": [
|
||||
{{- range .Pages.ByDate.Reverse -}}
|
||||
{
|
||||
"id": "{{ .Permalink }}",
|
||||
"url": "{{ .Permalink }}",
|
||||
"content_text": {{ .Plain | jsonify }},
|
||||
"date_published": "{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}",
|
||||
{{- if .Params.tags }}
|
||||
"tags": {{ .Params.tags | jsonify }},
|
||||
{{- end }}
|
||||
{{- if not (last .Pages.ByDate.Reverse .) }},{{ end }}
|
||||
}
|
||||
{{- end }}
|
||||
]
|
||||
}
|
18
layouts/notes/list.jsonfeed.json
Normal file
18
layouts/notes/list.jsonfeed.json
Normal file
@ -0,0 +1,18 @@
|
||||
{
|
||||
"version": "https://jsonfeed.org/version/1.1",
|
||||
"title": "{{ .Site.Title }} - Notes Feed",
|
||||
"home_page_url": "{{ .Site.BaseURL }}",
|
||||
"feed_url": "{{ .Permalink }}",
|
||||
"description": "A feed of my notes from {{ .Site.Title }}",
|
||||
"items": [
|
||||
{{- $length := sub (len .Pages) 1 -}}
|
||||
{{- range $index, $page := .Pages.ByDate.Reverse -}}
|
||||
{
|
||||
"id": "{{ $page.Permalink }}",
|
||||
"url": "{{ $page.Permalink }}",
|
||||
"content_html": {{ .Content | jsonify }},
|
||||
"date_published": "{{ $page.Date.Format "2006-01-02T15:04:05Z07:00" }}"
|
||||
}{{ if lt $index $length }},{{ end }}
|
||||
{{- end }}
|
||||
]
|
||||
}
|
@ -3,3 +3,7 @@
|
||||
<title>{{ .Title }}</title>
|
||||
<link rel="stylesheet" href="/css/style.css">
|
||||
<link rel="me" href="{{ .Site.Params.indieweb.me_url }}" />
|
||||
<link href="mailto:{{ .Site.Params.author.email }}" rel="me">
|
||||
<link rel="authorization_endpoint" href="https://indieauth.com/auth">
|
||||
<link rel="token_endpoint" href="https://tokens.indieauth.com/token">
|
||||
<link rel="micropub" href="{{ .Site.BaseURL }}/micropub">
|
Reference in New Issue
Block a user