Skip to content

Instantly share code, notes, and snippets.

Created November 3, 2014 14:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/47a2fdcd83a523e34e17 to your computer and use it in GitHub Desktop.
Save anonymous/47a2fdcd83a523e34e17 to your computer and use it in GitHub Desktop.
{% set showcase_image = random(page.media.images) %}
{% if showcase_image %}
<div class="modular-row showcase flush-top" style="background-image: url({{ showcase_image.url }});">
{% else %}
<div class="modular-row showcase">
{% endif %}
{{ content }}
{% for button in page.header.buttons %}
<a class="button{% if button.primary %} primary{% endif %}" href="{{ button.url }}">{{ button.text }}</a>
{% endfor %}
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment