Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Commit

Permalink
fix: update behold script
Browse files Browse the repository at this point in the history
  • Loading branch information
ShoGinn committed Mar 5, 2024
1 parent a81459b commit cb2bdde
Show file tree
Hide file tree
Showing 3 changed files with 867 additions and 1,809 deletions.
12 changes: 10 additions & 2 deletions blocks/github.shoginn.instagram-behold.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,16 @@ <h1 class="mb-0">{{ . | markdownify }}</h1>
{{ $username := $block.Params.instagram.username }}

{{ if $behold_id }}
<div class="py-5" data-behold-id="{{ $behold_id }}"></div>
<script src="https://w.behold.so/widget.js" type="module"></script>
<behold-widget feed-id="{{ $behold_id }}"></behold-widget>
<script>
if ("noModule" in HTMLScriptElement.prototype) {
const d = document,
s = d.createElement("script");
s.type = "module";
s.src = "https://w.behold.so/widget.js";
d.body.appendChild(s);
}
</script>
{{ end }}

{{ if $username }}
Expand Down
Loading

0 comments on commit cb2bdde

Please sign in to comment.