diff --git a/content/notes/note2.md b/content/notes/note2.md new file mode 100644 index 0000000..33be133 --- /dev/null +++ b/content/notes/note2.md @@ -0,0 +1,6 @@ +--- +date: "2025-01-07" +type: "notes" +--- + +This is another quick thought or observation without a title. #Microblogging diff --git a/hugo.toml b/hugo.toml index 98686dd..9c98031 100644 --- a/hugo.toml +++ b/hugo.toml @@ -69,5 +69,14 @@ tag = "tags" weight = 20 [outputs] - home = ["html", "jsonfeed", "rss"] - section = ["html", "jsonfeed", "rss"] + home = ["html", "rss"] + section = ["html", "json"] # Enable JSON for section outputs + page = ["html"] + +[outputFormats.json] + mediaType = "application/json" + baseName = "index" + isPlainText = true + notAlternative = true + + diff --git a/layouts/_default/list.jsonfeed.json b/layouts/_default/list.jsonfeed.json deleted file mode 100644 index d323529..0000000 --- a/layouts/_default/list.jsonfeed.json +++ /dev/null @@ -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 }} -} diff --git a/layouts/partials/extra-head.html b/layouts/partials/extra-head.html deleted file mode 100644 index a23931f..0000000 --- a/layouts/partials/extra-head.html +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/themes/hugo-indieweb-starter b/themes/hugo-indieweb-starter index 8191679..9083f3a 160000 --- a/themes/hugo-indieweb-starter +++ b/themes/hugo-indieweb-starter @@ -1 +1 @@ -Subproject commit 8191679266bab6405ec80069faa8ddd6a86f92d9 +Subproject commit 9083f3aba76b5ac2a73744d5524b9f6721936a9a