-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathindex.html
More file actions
47 lines (45 loc) · 1.93 KB
/
index.html
File metadata and controls
47 lines (45 loc) · 1.93 KB
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
---
layout: default
title: Blog
description: News and updates from the AnySoftKeyboard team
---
<section class="hero-bg text-white text-center py-10 md:py-14">
<div class="max-w-4xl mx-auto px-4">
<h1 class="text-3xl md:text-4xl font-bold">Blog</h1>
<p class="text-lg text-white/80 mt-2">News and updates from the team</p>
</div>
</section>
<section class="py-12 md:py-16 bg-white">
<div class="max-w-3xl mx-auto px-4">
{% if site.posts.size > 0 %}
<ul class="space-y-8" role="list">
{% for post in site.posts %}
<li class="blog-post">
<h2 class="text-2xl font-bold mb-2">
<a href="{{ post.url | relative_url }}" class="text-gray-900 hover:text-purple-700">{{ post.title }}</a>
</h2>
<p class="text-gray-500 text-sm mb-4">
<time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: "%B %-d, %Y" }}</time>
{% if post.author %} • {{ post.author }}{% endif %}
</p>
{% if post.excerpt %}
<p class="text-gray-600">{{ post.excerpt | strip_html | truncate: 200 }}</p>
{% endif %}
</li>
{% endfor %}
</ul>
{% else %}
<p class="text-center text-gray-500 py-12">No posts yet. Check back soon!</p>
{% endif %}
{% if paginator.total_pages > 1 %}
<nav class="flex justify-center gap-4 mt-12" aria-label="Blog navigation">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path | relative_url }}" class="px-4 py-2 bg-gray-100 rounded-lg text-gray-700 hover:bg-purple-700 hover:text-white transition-colors" aria-label="Previous page">« Newer</a>
{% endif %}
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path | relative_url }}" class="px-4 py-2 bg-gray-100 rounded-lg text-gray-700 hover:bg-purple-700 hover:text-white transition-colors" aria-label="Next page">Older »</a>
{% endif %}
</nav>
{% endif %}
</div>
</section>