Remove replies from homepage

This commit is contained in:
JP Hastings-Spital 2024-06-18 07:51:03 +01:00
parent 387bca5d6c
commit f8af214006
2 changed files with 11 additions and 2 deletions

View file

@ -68,7 +68,16 @@
</div>
{{- end -}}
{{- $notePage := index (where .Site.RegularPages "Section" "eq" "notes") 0 -}}
{{- $notePages := where .Site.RegularPages "Section" "eq" "notes" -}}
{{- $notePage := index $notePages 0 -}}
{{- if $notePage.Params.inReplyTo -}}
{{- range $notePages -}}
{{- if not .Params.inReplyTo -}}
{{- $notePage = . -}}
{{- break -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{- with $notePage -}}
<div class="note">
<div class="context">{{ partial "svg.html" (dict "name" "message") }} <a href="{{ .RelPermalink }}"><date datetime="{{ dateFormat "2006-01-02T15:04:05-0700" .Date }}" title="Posted on {{ dateFormat "Monday Jan 2 2006 at 03:04 MST" .Date }}" data-pagefind-sort="date">

View file

@ -9,7 +9,7 @@ Things I might work on within my personal blog's software.
- [ ] Micropub Replies look weird in a bunch of places
- [ ] When posted via Echofeed: They include the "in reply to" initial stuff; this is too cumbersome
- [ ] When posted via Echofeed: They should probably be "Quiet public", or ideally posted as replies to a fedi post, if there's one referenced in the source as a syncidcation
- [ ] They get posted on the homepage, when they shouldn't
- [x] They get posted on the homepage, when they shouldn't
- [ ] Spoiler open styling has regressed!
### Ideas