Add repository-driven site theme
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
<section class="hero">
|
||||
<p class="eyebrow">Configuration-first publishing</p>
|
||||
<h1>{{ page.title }}</h1>
|
||||
{% if page.summary %}
|
||||
<p class="hero-summary">{{ page.summary }}</p>
|
||||
{% endif %}
|
||||
<div class="prose hero-copy">
|
||||
{{ page.renderedContent | safe_content }}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{% if collection.items.size > 0 %}
|
||||
<section class="section-block" aria-labelledby="latest-heading">
|
||||
<div class="section-heading">
|
||||
<p class="eyebrow">From the repository</p>
|
||||
<h2 id="latest-heading">Latest work</h2>
|
||||
</div>
|
||||
<div class="card-grid">
|
||||
{% for item in collection.items %}
|
||||
<article class="card">
|
||||
<p class="card-kind">{{ item.contentModel }}</p>
|
||||
<h3><a href="{{ item.route }}">{{ item.title }}</a></h3>
|
||||
<p>{{ item.summary }}</p>
|
||||
<a class="text-link" href="{{ item.route }}">Read more <span aria-hidden="true">→</span></a>
|
||||
</article>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</section>
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user