Skip to content

Commit 13fac7c

Browse files
Add 'All Posts' page and update links in homepage and TCE page
1 parent 437bf79 commit 13fac7c

3 files changed

Lines changed: 82 additions & 2 deletions

File tree

blog-all.html

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
layout: default
3+
title: "All Posts"
4+
permalink: /blog/all/
5+
---
6+
7+
<div class="recent-posts">
8+
<h1>All Posts</h1>
9+
10+
{% for post in site.posts %}
11+
{% if post.categories contains 'tce' or post.categories contains 'blog' %}
12+
<article class="post-card">
13+
{% if post.card_thumbnail %}
14+
<div class="post-card-thumbnail">
15+
<img src="/assets/tb/cards/{{ post.card_thumbnail }}" alt="">
16+
</div>
17+
{% endif %}
18+
19+
<div class="post-card-content">
20+
<h3 class="post-card-title">
21+
<a href="{{ post.url }}">{{ post.title }}</a>
22+
</h3>
23+
<p class="post-card-meta">
24+
{{ post.date | date: "%A, %B %d, %Y" }}
25+
{% if post.categories.size > 0 %}
26+
| {{ post.categories | join: ", " }}
27+
{% endif %}
28+
</p>
29+
<p class="post-card-excerpt">
30+
{{ post.excerpt | strip_html | truncatewords: 30 }}
31+
</p>
32+
<a href="{{ post.url }}" class="post-card-link">Continue reading →</a>
33+
</div>
34+
</article>
35+
{% endif %}
36+
{% endfor %}
37+
</div>

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
</head>
1111

1212
<div class="homepage-intro">
13-
<!-- <h1>Welcome to nan.nyc</h1> -->
14-
1513
<p style="margin-top: 2.5em; margin-bottom: 1.8em; font-size: 1.3em;"><em>He thought leaving meant escape. But what happens when the world you find is stranger than the one you left behind?</em></p>
1614

1715
<p><em>The Convergent Eigenspace</em> follows Cedric Kenyon from small-town Ohio to 1990s New York, where he stumbles into a hidden world of magic running parallel to everyday reality. As he navigates this new life - and the people who inhabit it - he learns that fangs alone do not define a predator.</p>
@@ -59,3 +57,5 @@ <h3 class="post-card-title">
5957

6058
<hr>
6159

60+
<p>For more updates, visit the <a href="/blog/all/">All Posts</a> page.</p>
61+

tce.html

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,49 @@ <h1>The Convergent Eigenspace</h1>
2525
<p><strong>The Complete Series</strong><br>
2626
The Convergent Eigenspace spans eight interconnected volumes, each exploring different aspects of a world where mathematical principles govern magical systems and reality itself.</p>
2727

28+
<hr>
29+
30+
<div class="recent-posts">
31+
<h2>Latest Updates</h2>
32+
33+
{% assign counter = 0 %}
34+
{% for post in site.posts %}
35+
{% if post.categories contains 'tce' %}
36+
{% if counter < 5 %}
37+
<article class="post-card">
38+
{% if post.card_thumbnail %}
39+
<div class="post-card-thumbnail">
40+
<img src="/assets/tb/cards/{{ post.card_thumbnail }}" alt="">
41+
</div>
42+
{% endif %}
43+
44+
<div class="post-card-content">
45+
<h3 class="post-card-title">
46+
<a href="{{ post.url }}">{{ post.title }}</a>
47+
</h3>
48+
<p class="post-card-meta">
49+
{{ post.date | date: "%A, %B %d, %Y" }}
50+
{% if post.categories.size > 0 %}
51+
| {{ post.categories | join: ", " }}
52+
{% endif %}
53+
</p>
54+
<p class="post-card-excerpt">
55+
{{ post.excerpt | strip_html | truncatewords: 30 }}
56+
</p>
57+
<a href="{{ post.url }}" class="post-card-link">Continue reading →</a>
58+
</div>
59+
</article>
60+
{% assign counter = counter | plus: 1 %}
61+
{% endif %}
62+
{% endif %}
63+
{% endfor %}
64+
</div>
65+
66+
<hr>
67+
68+
<p>For more updates, visit the <a href="/blog/all/">All Posts</a> page.</p>
69+
70+
2871
</body>
2972
</html>
3073

0 commit comments

Comments
 (0)