Sun, 06 Aug 2023 21:12:43 +0300
Load markdown-it-container
21
3c71c525cec2
Use markdown-it as default markdown parser.
Tuomo Valkonen <tuomov@iki.fi>
parents:
10
diff
changeset
|
1 | <!DOCTYPE html> |
10
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
2 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
3 | <head> |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
4 | <meta http-equiv="content-type" content="text/xhtml; charset=utf-8" /> |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
5 | <meta name="author" content="lgen" /> |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
6 | <meta name="viewport" content="initial-scale=1" /> |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
7 | <link rel="stylesheet" type="text/css" href="<%= base_url %>style/default.css" /> |
21
3c71c525cec2
Use markdown-it as default markdown parser.
Tuomo Valkonen <tuomov@iki.fi>
parents:
10
diff
changeset
|
8 | <!-- TERRIBLY BROKEN <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.css" integrity="sha384-zB1R0rpPzHqg7Kpt0Aljp8JPLqbXI3bhnPWROx27a9N0Ll6ZP/+DiW/UqRcLbRjq" |
3c71c525cec2
Use markdown-it as default markdown parser.
Tuomo Valkonen <tuomov@iki.fi>
parents:
10
diff
changeset
|
9 | crossorigin="anonymous">--> |
3c71c525cec2
Use markdown-it as default markdown parser.
Tuomo Valkonen <tuomov@iki.fi>
parents:
10
diff
changeset
|
10 | <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.5.1/katex.min.css"> |
3c71c525cec2
Use markdown-it as default markdown parser.
Tuomo Valkonen <tuomov@iki.fi>
parents:
10
diff
changeset
|
11 | <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.0.0/styles/default.min.css"> |
10
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
12 | <link rel="apple-touch-icon-precomposed" href="<%= base_url %>style/icon144.png" type="144x144"/> |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
13 | <link rel="shortcut icon" href="<%= base_url %>style/icon16.png" type="image/png" /> |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
14 | <!-- |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
15 | <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<%= base_url %>feed.rss}" /> |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
16 | <link rel="alternate" type="application/atom+xml" title="Atom 1.0" href="<%= base_url %>feed.atom" /> |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
17 | --> |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
18 | <title>lgen test page – <%= page.meta.title %></title> |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
19 | </head> |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
20 | |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
21 | <% |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
22 | --require('plugin.breadcrumb') |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
23 | local main_url = (base_url=="" and "./" or base_url) |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
24 | %> |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
25 | <body> |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
26 | <div class="header"> |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
27 | <!-- <span> <a href="<%= main_url %>">main</a> </span> --> |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
28 | <!-- <span> < %= plugin.breadcrumb.trail(env) % > </span> --> |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
29 | </div> |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
30 | |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
31 | <div id="sidebar"> |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
32 | <div class="sidetitle"> |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
33 | lgen |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
34 | </div> |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
35 | <div class="side"> |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
36 | <a href="<%= base_url %>subpage/">sub-page</a><br/> |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
37 | </div> |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
38 | </div> |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
39 | |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
40 | |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
41 | <div id="content"> |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
42 | <% if page.meta.blogpost then %> |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
43 | <div class="posted-header"> |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
44 | <%= page.meta.created_at %> |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
45 | <!-- strftime("%Y-%m-%d %H:%M UTC") --> |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
46 | </div> |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
47 | <% end %> |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
48 | |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
49 | <% if page.meta.h1_title then %> |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
50 | <h1><%= page.meta.h1_title %></h1> |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
51 | <% else %> |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
52 | <h1><%= page.meta.title %></h1> |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
53 | <% end %> |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
54 | <%= content %> |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
55 | </div> |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
56 | |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
57 | <div id="footer"> |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
58 | </div> |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
59 | </body> |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
60 | </html> |