This repository has been archived on 2023-02-03. You can view files and clone it, but cannot push or open issues or pull requests.
autonomic.zone/src/_layouts/spotlight.html

37 lines
1.4 KiB
HTML
Raw Normal View History

2017-09-22 22:01:19 +00:00
<!DOCTYPE HTML>
<html>
{% include head.html %}
<body>
{% include header.html %}
<div id="main">
<header{% if page.image %} style="background-image: url('{% if site.featured-image-source %}{{ page.image | prepend: site.featured-image-source | absolute_url }}{% else %}{{ "" | absolute_url }}/assets/images/{{ page.image }}{% endif %}');"{% endif %}>
<h2>{{ page.title }}</h2>
<p>{{ page.description }}</p>
</header>
</div>
<section class="wrapper alt style2">
{% if page.tiles-source == 'posts' %}
{% assign items = site.posts %}
{% elsif page.tiles-source == 'pages' %}
{% assign items = site.pages %}
{% endif %}
{% for item in items limit:page.tiles-count %}
<section class="spotlight">
<div class="image">{% if item.image %}<img src="{% if site.featured-image-source %}{{ item.image | prepend: site.featured-image-source | absolute_url }}{% else %}{{ "" | absolute_url }}/assets/images/{{ item.image }}{% endif %}" alt="" />{% endif %}</div>
<div class="content">
<h2><a href="{{ item.url | relative_url }}" class="link">{{ item.title }}</a></h2>
<p>{{ item.description }}</p>
</div>
</section>
{% endfor %}
</section>
{% include footer.html %}
</body>
</html>