feat: banner blocks
This commit is contained in:
parent
52d80865ca
commit
6996f7ab6d
2 changed files with 10 additions and 0 deletions
|
@ -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 %}
|
Reference in a new issue