-
Notifications
You must be signed in to change notification settings - Fork 71
/
Copy pathhome.html
39 lines (39 loc) · 1.69 KB
/
home.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
---
title: Support tables for HTML and CSS in emails
layout: default
permalink: /
---
<div class="homepage">
<div class="block">
<h1 class="list-title"><a href="/features/">Latest features</a></h1>
<ol class="list">
{% assign latest-features = site.features | sort:"last_test_date" | reverse %}
{% for feature in latest-features limit:5 %}
{% assign feature-category = '' %}
{% if feature.category == 'html' or feature.category == 'css' %}
{% assign feature-title-first-chars = feature.title | downcase | slice: 0, feature.category.size %}
{% assign feature-category-first-chars = feature.category | downcase %}
{% if feature-category-first-chars != feature-title-first-chars %}
{% assign feature-category = feature.category | upcase | append:' ' %}
{% endif %}
{% endif %}
<li><a href="{{ feature.url }}">{{ feature-category | default:'' }}{{ feature.title | escape_once }}</a>, {{ feature.last_test_date | date: '%B %d, %Y' }}</li>
{% endfor %}
</ol>
<a href="/features/" class="button">View all features</a>
</div>
<div class="block">
<h1 class="list-title"><a href="/news/">Latest news</a></h1>
<ul class="list">
{% for post in site.posts limit:5 %}
<li><a href="{{ post.url }}">{{ post.title | markdownify | remove: ' class="language-plaintext highlighter-rouge"' | remove: '<p>' | remove: '</p>' | strip }}</a>, {{ post.date | date: '%B %d, %Y' }}</li>
{% endfor %}
</ul>
<a href="/news/" class="button">View all news</a>
</div>
<div class="block">
<h1 class="list-title"><a href="/scoreboard/">Client scores</a></h1>
{% include client-scores.html limit=5 %}
<a href="/scoreboard/" class="button">View the scoreboard</a>
</div>
</div>