forked from ritsec/ritsec.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
newsletters.html
40 lines (37 loc) · 1011 Bytes
/
newsletters.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
---
layout: info_page
title: Newsletters
---
<style>
.wrap {
margin: 0 auto;
display: inline-block;
overflow: hidden;
}
.child{
padding-right: 10px;
color: black;
}
</style>
<!---->
{% for year in site.data.newsletters %}
<div style="text-align: center;">
<h2 style="text-align: center;">{{year.year}}</h2>
{% assign count = 0 %}
{% for month in year.month %}
{% assign remainder = {{count}} | modulo: 4 %}
{% if remainder == 0 and count > 0 %}
<br>
{% endif %}
{% assign count = count | plus: 1 %}
<div class="wrap">
{% assign key = {{month[1]}} | split: " " %}
<a href="assets/images/newsletters/{{key[0]}}" target="_blank"><h3 class="child">{{month[0]}} </h3></a>
<a href="assets/images/newsletters/{{key[0]}}" target="_blank"><img style="width:180px; height: 200px;" src="assets/images/newsletters/{{key[1]}}"></img></a>
</div>
{% endfor %}
<br>
<br>
</div>
{% endfor %}
<br>