Compare commits

..

8 Commits

Author SHA1 Message Date
8230f0cb10 update theme
All checks were successful
Build Hugo Site / build (push) Successful in 7s
2025-01-08 16:52:37 -07:00
ecfb422394 Create note: 20250108234637
All checks were successful
Build Hugo Site / build (push) Successful in 7s
2025-01-09 00:46:37 +01:00
bd4863bea9 Create note: 20250108234551
All checks were successful
Build Hugo Site / build (push) Successful in 7s
2025-01-09 00:45:51 +01:00
ab2acbc7e2 update theme version
All checks were successful
Build Hugo Site / build (push) Successful in 7s
2025-01-08 16:36:51 -07:00
e8ce333184 json feed work
All checks were successful
Build Hugo Site / build (push) Successful in 6s
2025-01-08 16:21:12 -07:00
cb3148202d troubleshooting
All checks were successful
Build Hugo Site / build (push) Successful in 6s
2025-01-08 15:50:06 -07:00
b1b7dd1ebd theme version mixup
All checks were successful
Build Hugo Site / build (push) Successful in 7s
2025-01-08 15:27:57 -07:00
abd1e47f3a update theme version
All checks were successful
Build Hugo Site / build (push) Successful in 8s
2025-01-08 15:26:34 -07:00
8 changed files with 32 additions and 72 deletions

View File

@@ -0,0 +1,6 @@
---
date: "2025-01-08"
type: "notes"
---
test note

View File

@@ -0,0 +1,6 @@
---
date: "2025-01-08"
type: "notes"
---
yet another test note

5
content/notes/_index.md Normal file
View File

@@ -0,0 +1,5 @@
---
title: "Notes"
type: "notes"
outputs: ["HTML", "jsonfeed"]
---

6
content/notes/note2.md Normal file
View File

@@ -0,0 +1,6 @@
---
date: "2025-01-07"
type: "notes"
---
This is another quick thought or observation without a title. #Microblogging

View File

@@ -21,7 +21,7 @@ tag = "tags"
[params.author] [params.author]
name = "Phil Skents" name = "Phil Skents"
url = "https://thesatelliteoflove.com" url = "https://thesatelliteoflove.com"
email = "phil@example.com" # Optional: Use if contact info is public email = "phil@thesatelliteoflove.com" # Optional: Use if contact info is public
about = "Web tinkerer, IndieWeb enthusiast, and janitor of the Satellite of Love." about = "Web tinkerer, IndieWeb enthusiast, and janitor of the Satellite of Love."
avatar = "static/images/author-avatar.png" # Optional: Path to an avatar image avatar = "static/images/author-avatar.png" # Optional: Path to an avatar image
mastodon = "https://social.thesatelliteoflove.com/users/phil" mastodon = "https://social.thesatelliteoflove.com/users/phil"
@@ -42,7 +42,6 @@ tag = "tags"
dateform = "Jan 2, 2006" dateform = "Jan 2, 2006"
dateformShort = "Jan 2" dateformShort = "Jan 2"
dateformNum = "2006-01-02" dateformNum = "2006-01-02"
showFullTextinJSONFeed = true # Optimize feeds for IndieWeb-compatible readers
# Optional social links # Optional social links
[[params.socialLinks]] [[params.socialLinks]]
@@ -68,6 +67,13 @@ tag = "tags"
url = "about/" url = "about/"
weight = 20 weight = 20
[outputFormats.jsonfeed]
mediaType = "application/json"
baseName = "feed"
rel = "alternate"
isPlainText = true
[outputs] [outputs]
home = ["html", "jsonfeed", "rss"] home = ["html", "jsonfeed", "rss"]
section = ["html", "jsonfeed", "rss"] section = ["html", "jsonfeed", "rss"]

View File

@@ -1,65 +0,0 @@
{{- $pctx := . -}}
{{- if .IsHome -}}{{ $pctx = site }}{{- end -}}
{{- $pages := slice -}}
{{- if or $.IsHome $.IsSection -}}
{{- $pages = $pctx.RegularPages -}}
{{- else -}}
{{- $pages = $pctx.Pages -}}
{{- end -}}
{{- $limit := site.Config.Services.RSS.Limit -}}
{{- if ge $limit 1 -}}
{{- $pages = $pages | first $limit -}}
{{- end -}}
{{- $title := "" }}
{{- if eq .Title .Site.Title }}
{{- $title = .Site.Title }}
{{- else }}
{{- with .Title }}
{{- $title = print . " on "}}
{{- end }}
{{- $title = print $title .Site.Title }}
{{- end }}
{
"version": "https://jsonfeed.org/version/1.1",
"title": {{ $title | jsonify }},
"home_page_url": {{ .Permalink | jsonify }},
{{- with .OutputFormats.Get "jsonfeed" }}
"feed_url": {{ .Permalink | jsonify }},
{{- end }}
{{- if (or .Site.Params.author .Site.Params.author_url) }}
"authors": [{
{{- if .Site.Params.author }}
"name": {{ .Site.Params.author | jsonify }},
{{- end }}
{{- if .Site.Params.author_url }}
"url": {{ .Site.Params.author_url | jsonify }}
{{- end }}
}],
{{- end }}
{{- if $pages }}
"items": [
{{- range $index, $element := $pages }}
{{- with $element }}
{{- if $index }},{{end}} {
"title": {{ .Title | jsonify }},
"id": {{ .Permalink | jsonify }},
"url": {{ .Permalink | jsonify }},
{{- if .Site.Params.showFullTextinJSONFeed }}
"summary": {{ with .Description }}{{ . | jsonify }}{{ else }}{{ .Summary | jsonify }}{{ end -}},
"content_html": {{ .Content | jsonify }},
{{- else }}
"content_text": {{ with .Description }}{{ . | jsonify }}{{ else }}{{ .Summary | jsonify }}{{ end -}},
{{- end }}
{{- if .Params.cover.image }}
{{- $cover := (.Resources.ByType "image").GetMatch (printf "*%s*" (.Params.cover.image)) }}
{{- if $cover }}
"image": {{ (path.Join .RelPermalink $cover) | absURL | jsonify }},
{{- end }}
{{- end }}
"date_published": {{ .Date.Format "2006-01-02T15:04:05Z07:00" | jsonify }}
}
{{- end }}
{{- end }}
]
{{ end }}
}

View File

@@ -1,4 +0,0 @@
<link href="mailto:phil@thesatelliteoflove.com" 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="https://thesatelliteoflove.com/micropub">