Compare commits

...

9 Commits

Author SHA1 Message Date
eec3c13e9a Update layouts/notes/list.jsonfeed.json 2025-01-09 05:59:18 +01:00
5f5c7ecc76 update feed to tag content only 2025-01-08 16:51:35 -07:00
338e7e8b9e case change for BaseURL 2025-01-08 16:34:36 -07:00
a08f147d48 update head to include indieauth data 2025-01-08 16:32:24 -07:00
f577773958 another comma fix 2025-01-08 16:07:08 -07:00
593e6611c2 fixed template to handle commas correctly 2025-01-08 16:05:18 -07:00
38263a5906 update jsonfeed for notes 2025-01-08 15:54:46 -07:00
3fb8d959d5 try my own jsonfeed method 2025-01-08 15:52:39 -07:00
9083f3aba7 update index.json 2025-01-08 15:35:07 -07:00
3 changed files with 22 additions and 21 deletions

View File

@ -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 }}
]
}

View 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 }}
]
}

View File

@ -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">