fixed bluesky embed in light mode

This commit is contained in:
Ell 2024-12-14 13:41:39 +01:00
parent 649fb2de63
commit b922369f5c

View file

@ -8,7 +8,7 @@
<div class="col-auto" style="padding: 10px;">
<div style="width: 350px; height: 600px; overflow-y: scroll;">
<script src="https://cdn.jsdelivr.net/npm/bsky-embed/dist/bsky-embed.es.js" async></script>
<bsky-embed username="tinylifegame.bsky.social" mode="dark" limit="10" load-more="true"></bsky-embed>
<bsky-embed username="tinylifegame.bsky.social" limit="10" load-more="true"></bsky-embed>
</div>
<span class="social-bottom">Or view on <a href="https://bsky.app/profile/tinylifegame.bsky.social">Bluesky</a> or <a href="https://twitter.com/TinyLifeGame">Twitter</a></span>
</div>
@ -20,7 +20,7 @@
<script>
let theme = darkTheme ? "dark" : "light";
$("#discord-widget").attr("src", `https://discordapp.com/widget?id=181435613147430913&theme=${theme}`);
$(".twitter-timeline").attr("data-theme", theme);
$("bsky-embed").attr("mode", theme)
</script>
</div>