Feat: support bluesky shortcode (#576)

This commit is contained in:
Cell
2025-03-12 15:01:31 +08:00
committed by GitHub
parent 6c7145c311
commit e2afa113be
+7
View File
@@ -0,0 +1,7 @@
{{- $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 -}}