Repository navigation
Expand file tree
/
Copy pathblog.html
More file actions
82 lines (74 loc) · 3.85 KB
/
Copy pathblog.html
File metadata and controls
82 lines (74 loc) · 3.85 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
---
layout: default
title: Blog
description: Thoughts on software development, AI/ML, college football analytics, and maker projects
---
<div class="bg-gradient-to-br from-primary to-accent text-white py-16">
<div class="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center">
<h1 class="text-4xl md:text-5xl font-bold mb-4">Blog</h1>
<p class="text-xl text-gray-100">
Thoughts on software development, AI/ML, college football analytics, and everything in between
</p>
</div>
</div>
<div class="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12">
{% if site.posts.size > 0 %}
<div class="space-y-8">
{% for post in site.posts %}
<article class="bg-white rounded-lg shadow-md hover:shadow-xl transition-shadow duration-300 overflow-hidden">
<div class="p-6 md:p-8">
<div class="mb-3">
<time class="text-sm text-gray-500">{{ post.date | date: "%B %d, %Y" }}</time>
</div>
<h2 class="text-2xl md:text-3xl font-bold text-primary mb-3">
<a href="{{ post.url }}" class="hover:text-accent transition">
{{ post.title }}
</a>
</h2>
{% if post.description %}
<p class="text-gray-600 mb-4 text-lg">{{ post.description }}</p>
{% endif %}
{% if post.tags %}
<div class="flex flex-wrap gap-2 mb-4">
{% for tag in post.tags %}
<span class="px-3 py-1 bg-accent/10 text-accent rounded-full text-sm font-medium">
{{ tag }}
</span>
{% endfor %}
</div>
{% endif %}
{% unless post.description %}
<p class="text-gray-600 mb-4">{{ post.excerpt | strip_html | truncatewords: 30 }}</p>
{% endunless %}
<a href="{{ post.url }}" class="inline-flex items-center text-accent hover:text-primary font-medium transition">
Read More <i class="fas fa-arrow-right ml-2"></i>
</a>
</div>
</article>
{% endfor %}
</div>
{% else %}
<div class="text-center py-12">
<div class="text-gray-400 mb-4">
<i class="fas fa-pen-fancy text-6xl"></i>
</div>
<h3 class="text-2xl font-bold text-gray-700 mb-2">No posts yet</h3>
<p class="text-gray-600">Check back soon for new content!</p>
</div>
{% endif %}
<!-- Newsletter Signup (Optional) -->
<div class="mt-12 bg-gradient-to-br from-primary to-accent text-white rounded-xl p-8 text-center">
<h3 class="text-2xl font-bold mb-3">Stay Updated</h3>
<p class="mb-6">Follow me on social media for updates when new posts are published</p>
<div class="flex justify-center gap-4">
<a href="https://github.com/{{ site.github_username }}" target="_blank" rel="noopener"
class="bg-white text-primary px-6 py-3 rounded-lg font-semibold hover:bg-gray-100 transition inline-flex items-center gap-2">
<i class="fab fa-github"></i> GitHub
</a>
<a href="https://linkedin.com/in/{{ site.linkedin_username }}" target="_blank" rel="noopener"
class="bg-white text-primary px-6 py-3 rounded-lg font-semibold hover:bg-gray-100 transition inline-flex items-center gap-2">
<i class="fab fa-linkedin"></i> LinkedIn
</a>
</div>
</div>
</div>