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

49 lines
1.8 KiB
HTML
Raw Permalink Normal View History

2017-09-22 22:01:19 +00:00
<!DOCTYPE HTML>
2019-11-14 00:47:15 +00:00
<html lang="en">
2017-09-22 22:01:19 +00:00
{% include head.html %}
<body>
{% include header.html %}
<div id="main">
2019-11-14 02:23:09 +00:00
<header
{% if page.image %}
2019-11-14 02:23:09 +00:00
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 %}');"
2017-09-29 11:05:12 +00:00
{% endif %}
2019-11-14 02:23:09 +00:00
>
2017-09-22 22:01:19 +00:00
<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 %}
2017-09-24 19:20:09 +00:00
{% elsif page.tiles-source == 'clients' %}
{% assign items = site.clients %}
2017-09-22 22:01:19 +00:00
{% 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">
2017-09-24 19:20:09 +00:00
<h2>
{% if item.layout %}<a href="{{ item.url | relative_url }}" class="link">{% endif %}
{{ item.title }}
{% if item.layout %}</a>{% endif %}
</h2>
<p class="h5">{{ item.date | date: '%B %d, %Y' }}</p>
2017-09-22 22:01:19 +00:00
<p>{{ item.description }}</p>
</div>
</section>
{% endfor %}
</section>
{% include footer.html %}
2017-09-29 17:17:07 +00:00
{% include foot-scripts.html %}
2017-09-22 22:01:19 +00:00
</body>
</html>