Created
July 31, 2019 15:14
-
-
Save staycreativedesign/cb4c353650e00ee3598decf860158051 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% extends '_template' %} | |
{% import '_macros/content' as content %} | |
{% import '_macros/blocks' as blocks %} | |
{% import '_macros/helpers' as helper %} | |
{% block content %} | |
{% set content = entry.contentBuilder.all() %} | |
<main role="main" class="mt-5 attraction-details"> | |
<article> | |
<section> | |
<div class="row"> | |
<div class="container"> | |
<div class="col-sm-12"> | |
</div> | |
</div> | |
</div> | |
<div class="container"> | |
<div class='row'> | |
<div class='col-sm-12'> | |
<h1>{{ entry.title }}</h1> | |
{{ entry.image[0].getImg() }} | |
</div> | |
</div> | |
</div> | |
</section> | |
</article> | |
{{ entry.intro }} | |
<button>View Featured Images and Videos</button> | |
<button>Get Brochures</button> | |
{% for block in content %} | |
{% switch block.type %} | |
{% case "headings" %} | |
{% if block.header | length %} | |
<h2>{{ block.header }}</h2> | |
{% endif %} | |
{% if block.subheader | length %} | |
<h3>{{ block.subheader }}</h3> | |
{% endif %} | |
{% case "image" %} | |
{{ block.image[0].getImg() }} | |
{% case "pullQuote" %} | |
<blockquote> | |
{{ block.quote }} | |
{% if block.attribution | length %} | |
<footer>- {{ block.attribution }}</footer> | |
{% endif %} | |
</blockquote> | |
{% case "body" %} | |
{{ block.text }} | |
{% default %} | |
{% endswitch %} | |
{% endfor %} | |
{% endblock %} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment