-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
55 lines (43 loc) · 1.36 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
---
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">
{% assign articles = paginator.posts | sort: 'date' | reverse %}
{% for article in articles %}
{% include indexpage_item.html %}
{% endfor %}
</div>
</div>
<script>
document.addEventListener('DOMContentLoaded', () => {
const clickableTags = document.getElementsByClassName('tag-clickable')
for(let cT of clickableTags) {
let tagURL = cT.getAttribute('tag-url')
cT.onclick = (e) => {
e.preventDefault()
if (tagURL) window.location.href = tagURL
}
}
})
</script>
{% include paginator.html %}