forked from barryclark/jekyll-now
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
31 lines (27 loc) · 819 Bytes
/
index.html
File metadata and controls
31 lines (27 loc) · 819 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
---
layout: default
title: chrawl Devlog
published: true
---
<div class="blogPreview">
<h1>New on the blog:</h1>
{% for post in site.posts limit:3 %}
<article class="postPreview">
<h3><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h3>
</article>
{%endfor%}
</div>
<div class="images">
{% assign i = 0 %}
{% for img in site.data.img %}
<article class="image">
{% if img.type == "image" %}
<img src="{{img.link}}.png" alt="{{img.title}}">
{% else %}
<video autoplay="autoplay" loop="loop" poster="{{img.link}}.jpg" preload="auto"><source src="{{img.link}}.webm" type="video/webm"></video>
{% endif %}
<a href="/image/?id={{i}}"><div class="imageOverlay"><p>{{img.title}}</p></div></a>
</article>
{% assign i = i | plus: 1 %}
{% endfor %}
</div>