example/tmpl/page.template

Tue, 16 Jan 2018 17:13:40 +0000

author
Tuomo Valkonen <tuomov@iki.fi>
date
Tue, 16 Jan 2018 17:13:40 +0000
changeset 10
118ab361da29
child 21
3c71c525cec2
permissions
-rw-r--r--

Added an example website based on http://tuomov.iki.fi/

<!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>

mercurial