forked from ruby-news/ruby-news.github.io
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
62 lines (48 loc) · 1.56 KB
/
index.html
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
layout: rubynews
# These fields are fetched from the rubynews layout to generate meta tags
title: Ruby Weekly News Digest
description: Ruby Weekly News Digest
author: https://ruby.news
keywords: ruby rubynews weekly digest
# Extra scss / css file(s), don't use .css extension
# Should be an YAML Array
stylesheets:
- /assets/stylesheets/subscribe-form
# Extra javascript file(s)
js:
- /assets/javascript/particles.min.js
- /assets/javascript/delaunay-settings.js
---
{% include ruby_is_alive.html %}
<h2 style="width:75%;margin:4rem auto 0 auto" class="ta-center">
Latest Ruby news from the world
</h2>
<!-- Scroll to this section to have adequate margin to top of the page-content section -->
<div class="mb-4rem" id="mainContent"></div>
<div class="page-content">
<div class="grid-responsive-max-3x3">
<!-- Show first 2 posts -->
{% assign maxFirstPosts = 2 %}
{% assign counter = 0 %}
{% assign articles = site.posts | sort: 'date' | reverse %}
{% for article in articles %}
{% assign counter = counter | plus: 1 %}
{% include indexpage_item.html %}
{% if counter == maxFirstPosts %}
{% break %}
{% endif %}
{% endfor %}
<!-- Show the Email submit form -->
{% include submit_form_card.html %}
<!-- Show the rest posts -->
{% assign counter = 0 %}
{% for article in articles limit: 9 %}
{% if counter < maxFirstPosts %}
{% assign counter = counter | plus: 1 %}
{% continue %}
{% endif %}
{% include indexpage_item.html %}
{% endfor %}
</div>
</div>