example/tmpl/page.template

Sun, 06 Aug 2023 21:12:43 +0300

author
Tuomo Valkonen <tuomov@iki.fi>
date
Sun, 06 Aug 2023 21:12:43 +0300
changeset 43
20606bf1a6a0
parent 21
3c71c525cec2
permissions
-rw-r--r--

Load markdown-it-container

<!DOCTYPE html>
<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" />
    <!-- TERRIBLY BROKEN <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.css" integrity="sha384-zB1R0rpPzHqg7Kpt0Aljp8JPLqbXI3bhnPWROx27a9N0Ll6ZP/+DiW/UqRcLbRjq"
    crossorigin="anonymous">-->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.5.1/katex.min.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.0.0/styles/default.min.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