example/tmpl/inline.template

Mon, 20 Apr 2020 11:48:40 -0500

author
Tuomo Valkonen <tuomov@iki.fi>
date
Mon, 20 Apr 2020 11:48:40 -0500
changeset 16
e377590e9b19
parent 10
118ab361da29
permissions
-rw-r--r--

Support Pandoc rendering

10
118ab361da29 Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1 <% for _, inlinepage in ipairs(inlinepages) do %>
118ab361da29 Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
2 <div class="inlinepage">
118ab361da29 Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
3 <div class="posted-header">
118ab361da29 Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
4 <%= inlinepage.meta.created_at %>
118ab361da29 Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
5 </div>
118ab361da29 Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
6 <h2><a href="<%= inlinepage.location %>"><%= inlinepage.meta.title %></a></h2>
118ab361da29 Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
7 <%= inlinepage.content %>
118ab361da29 Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
8 </div>
118ab361da29 Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
9 <% end %>

mercurial