chore: split out styles + only load where needed

This commit is contained in:
Cory Dransfeldt 2024-01-02 13:49:47 -08:00
parent f21e8b18ae
commit 67fcfdb051
No known key found for this signature in database
26 changed files with 539 additions and 454 deletions

View file

@ -1,5 +1,11 @@
{% assign mentions = webmentions.mentions | webmentionsByUrl: page.url %}
{% if mentions %}
{% capture css %}
{% render "../../../assets/styles/widgets/webmentions.css" %}
{% endcapture %}
<style>
{{ css | cssmin }}
</style>
<div class="webmentions">
{% render "partials/webmentions/interaction.liquid", mentions: mentions, type: 'repost-of' %}
{% render "partials/webmentions/interaction.liquid", mentions: mentions, type: 'like-of' %}