#11 ADD page creation for SHORT and links in main feed
This commit is contained in:
parent
e0a9427307
commit
a08a7f537e
2 changed files with 3 additions and 3 deletions
|
@ -211,9 +211,9 @@ class SSGGGenerator:
|
|||
for feed_name, posts in feeds.items():
|
||||
self.generate_index(posts, feed_name)
|
||||
|
||||
# Generate individual pages for long posts and pages
|
||||
# Generate individual pages for long posts, short posts, and pages
|
||||
for post in all_posts:
|
||||
if post['type'] in ['long', 'page']:
|
||||
if post['type'] in ['long', 'short', 'page']:
|
||||
self.generate_post_page(post)
|
||||
|
||||
# Copy assets
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<article class="post">
|
||||
<div class="post-meta">{{ post.date }}</div>
|
||||
<h2 class="post-title">
|
||||
{% if post.type == 'long' %}
|
||||
{% if post.type in ['long', 'short'] %}
|
||||
<a href="{{ post.url }}">{{ post.title }}</a>
|
||||
{% else %}
|
||||
{{ post.title }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue