--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/example/tmpl/page.template Tue Jan 16 17:13:40 2018 +0000 @@ -0,0 +1,56 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> + <head> + <meta http-equiv="content-type" content="text/xhtml; charset=utf-8" /> + <meta name="author" content="lgen" /> + <meta name="viewport" content="initial-scale=1" /> + <link rel="stylesheet" type="text/css" href="<%= base_url %>style/default.css" /> + <link rel="apple-touch-icon-precomposed" href="<%= base_url %>style/icon144.png" type="144x144"/> + <link rel="shortcut icon" href="<%= base_url %>style/icon16.png" type="image/png" /> + <!-- + <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<%= base_url %>feed.rss}" /> + <link rel="alternate" type="application/atom+xml" title="Atom 1.0" href="<%= base_url %>feed.atom" /> + --> + <title>lgen test page – <%= page.meta.title %></title> + </head> + + <% + --require('plugin.breadcrumb') + local main_url = (base_url=="" and "./" or base_url) + %> + <body> + <div class="header"> + <!-- <span> <a href="<%= main_url %>">main</a> </span> --> + <!-- <span> < %= plugin.breadcrumb.trail(env) % > </span> --> + </div> + + <div id="sidebar"> + <div class="sidetitle"> + lgen + </div> + <div class="side"> + <a href="<%= base_url %>subpage/">sub-page</a><br/> + </div> + </div> + + + <div id="content"> + <% if page.meta.blogpost then %> + <div class="posted-header"> + <%= page.meta.created_at %> + <!-- strftime("%Y-%m-%d %H:%M UTC") --> + </div> + <% end %> + + <% if page.meta.h1_title then %> + <h1><%= page.meta.h1_title %></h1> + <% else %> + <h1><%= page.meta.title %></h1> + <% end %> + <%= content %> + </div> + + <div id="footer"> + </div> + </body> +</html>