Merge branch 'blog' into 'master'
blog page (#8) See merge request autonomic-cooperative/autonomic-cooperative.gitlab.io!6
This commit is contained in:
commit
1925cf5754
36
src/_layouts/spotlight.html
Normal file
36
src/_layouts/spotlight.html
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
<!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>
|
8
src/blog.md
Normal file
8
src/blog.md
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
layout: spotlight
|
||||||
|
title: Blog
|
||||||
|
tiles-source: posts
|
||||||
|
tiles-limit: 50
|
||||||
|
---
|
||||||
|
|
||||||
|
### Clients
|
Reference in New Issue
Block a user