Merge local and data-driven content in list

You could do a ‘manual’ union and cast each to the same ‘type’ as you go:

{{ $combi := slice }}

{{ $localPosts := ($.Site.GetPage "section" "blog").Pages }}
{{ $microPosts := getJSON "https://micro.blog/posts/discover" }}

{{- range $localPosts -}}
{{ $combi = $combi | append (dict "url" .Permalink "date_published" .Date "content_html" .Content) }}
{{- end -}}

{{- range $microPosts.items -}}
{{ $d := .date_published | time }}
{{ $combi = $combi | append (dict "url" .url "date_published" $d "content_html" .content_html) }}
{{- end -}}

{{ range sort $combi "date_published" "asc" }}
{{ . }}
{{ end }}
5 Likes