diff options
Diffstat (limited to 'provider/templates')
| -rw-r--r-- | provider/templates/default.html | 22 | ||||
| -rw-r--r-- | provider/templates/index.html | 9 | ||||
| -rw-r--r-- | provider/templates/post-list.html | 7 | ||||
| -rw-r--r-- | provider/templates/tag.html | 2 |
4 files changed, 40 insertions, 0 deletions
diff --git a/provider/templates/default.html b/provider/templates/default.html new file mode 100644 index 0000000..14497b2 --- /dev/null +++ b/provider/templates/default.html | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | <!DOCTYPE html> | ||
| 2 | <html$if(lang)$ lang="$lang$"$endif$> | ||
| 3 | <head> | ||
| 4 | <meta charset="utf-8"> | ||
| 5 | <meta name="generator" content="pandoc"> | ||
| 6 | <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes"> | ||
| 7 | <title>$if(title)$$title$$endif$</title> | ||
| 8 | <style type="text/css">code{white-space: pre;}</style> | ||
| 9 | <!--[if lt IE 9]> | ||
| 10 | <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> | ||
| 11 | <![endif]--> | ||
| 12 | <link rel="stylesheet" href="/css/default.css"> | ||
| 13 | </head> | ||
| 14 | <body> | ||
| 15 | $if(title)$ | ||
| 16 | <header> | ||
| 17 | <h1 class="title"><a href="/" title="dirty-haskell.org">dirty-haskell.org</a>: $title$</h1> | ||
| 18 | </header> | ||
| 19 | $endif$ | ||
| 20 | $body$ | ||
| 21 | </body> | ||
| 22 | </html> | ||
diff --git a/provider/templates/index.html b/provider/templates/index.html new file mode 100644 index 0000000..0eea806 --- /dev/null +++ b/provider/templates/index.html | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | $body$ | ||
| 2 | |||
| 3 | <ul> | ||
| 4 | $for(tags)$ | ||
| 5 | <li> | ||
| 6 | $body$ | ||
| 7 | </li> | ||
| 8 | $endfor$ | ||
| 9 | </ul> | ||
diff --git a/provider/templates/post-list.html b/provider/templates/post-list.html new file mode 100644 index 0000000..4d50d4d --- /dev/null +++ b/provider/templates/post-list.html | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | <ul> | ||
| 2 | $for(posts)$ | ||
| 3 | <li> | ||
| 4 | $if(ellipsis)$…$else$<a href="$url$">$title$</a>$endif$ | ||
| 5 | </li> | ||
| 6 | $endfor$ | ||
| 7 | </ul> | ||
diff --git a/provider/templates/tag.html b/provider/templates/tag.html new file mode 100644 index 0000000..8854cdd --- /dev/null +++ b/provider/templates/tag.html | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | <a href="$url$">$title$</a>$if(rss)$ (<a href="$rss$">RSS</a>)$endif$ | ||
| 2 | $body$ | ||
