Creating new template

24 views
Skip to first unread message

Naadiyaar

unread,
Mar 16, 2025, 7:18:16 AMMar 16
to JBake Users
Hi there

I'm trying to make a dedicated page for listing my blog posts.
I'm creating a new file for this as templates/weblog.ftl with content
-----------------------------------------------
<#include "header.ftl">

<#include "menu.ftl">

<h1>Blog</h1>
<br />
<#list posts as post>
<#if (post.status == "published")>
<p><a href="${post.uri}"><h2>${post.title}</h2></a></p>
<p style="text-align: center;">${post.date?string("dd MMMM yyyy")}</p>
<br />
</#if>
</#list>

<#include "footer.ftl">
-----------------------------------------------
but apparently that's not enough, since jbake doesn't generate an HTML file in the output directory.

any idea what's missing?Screenshot from 2025-03-16 14-46-33.png
Reply all
Reply to author
Forward
0 new messages