example/tmpl/inline.template

Sun, 06 Sep 2020 22:12:52 +0300

author
Tuomo Valkonen <tuomov@iki.fi>
date
Sun, 06 Sep 2020 22:12:52 +0300
changeset 35
2f927eae429b
parent 10
118ab361da29
permissions
-rw-r--r--

Don't auto-create directories that will be empty

<% for _, inlinepage in ipairs(inlinepages) do %>
<div class="inlinepage">
  <div class="posted-header">
  <%= inlinepage.meta.created_at %>
  </div>
  <h2><a href="<%= inlinepage.location %>"><%= inlinepage.meta.title %></a></h2>
  <%= inlinepage.content %>
</div>
<% end %>

mercurial