feat: banner blocks

This commit is contained in:
Cory Dransfeldt 2024-06-01 10:59:50 -07:00
parent 52d80865ca
commit 6996f7ab6d
No known key found for this signature in database
2 changed files with 10 additions and 0 deletions

View file

@ -1,5 +1,11 @@
{% for block in blocks %}
{% if block.type == 'youtube_player' %}
{% render "partials/widgets/youtube-player.liquid", url:block.url %}
{% elsif block.type == 'github_banner' %}
{% render "partials/banners/github.liquid", url:block.url %}
{% elsif block.type == 'npm_banner' %}
{% render "partials/banners/npm.liquid", url:block.url, command:block.command %}
{% elsif block.type == 'rss_banner' %}
{% render "partials/banners/rss.liquid", url:block.url, text:block.text %}
{% endif %}
{% endfor %}