mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
perf: add bluesky shortcode with remote JSON retrieval and styling
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
{{- $link := .Get "link" -}}
|
||||
{{- $link := .Get "link" -}}
|
||||
{{- $query := querify "url" $link -}}
|
||||
{{- $request := printf "https://embed.bsky.app/oembed?%s" $query -}}
|
||||
{{- $jsonOembed := resources.GetRemote $request -}}
|
||||
{{- $jsonOembed = $jsonOembed | transform.Unmarshal -}}
|
||||
{{- $jsonOHTML := $jsonOembed.html -}}
|
||||
{{- $jsonOHTML | safeHTML -}}
|
||||
{{- $jsonOembed := partial "function/get-remote-json" (dict "URL" $request) -}}
|
||||
{{- $jsonOembed.html | safeHTML -}}
|
||||
|
||||
Reference in New Issue
Block a user