summaryrefslogtreecommitdiff
path: root/default-files
diff options
context:
space:
mode:
authorp4bl0 <pablo@rauzy.name>2010-07-25 00:57:27 +0200
committerp4bl0 <pablo@rauzy.name>2010-07-25 00:57:27 +0200
commita4de1eb7869caba6d9020e3f9cc7a817dfc74241 (patch)
treeaadba16beb24e963ee9c0e01df3550ec67daad1b /default-files
parentd7a6747d12a570c6408e1d2f7685508f98a4cfa5 (diff)
using new include feature in default templates. Reorganised files accordingly
Diffstat (limited to 'default-files')
-rw-r--r--default-files/archives.html56
-rw-r--r--default-files/article.html49
-rw-r--r--default-files/footer.html13
-rw-r--r--default-files/fugitive.css260
-rw-r--r--default-files/nav-header.html24
-rw-r--r--default-files/print.css11
6 files changed, 413 insertions, 0 deletions
diff --git a/default-files/archives.html b/default-files/archives.html
new file mode 100644
index 0000000..5cb8981
--- /dev/null
+++ b/default-files/archives.html
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE html>
+<html dir="ltr" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title><?fugitive-install name ?>'s blog: archives</title>
+ <meta http-equiv="Content-type" content="application/xhtml+xml; charset=utf-8" />
+ <meta name="author" content="<?fugitive-install name ?>" />
+ <meta name="description" content="<?fugitive-install name ?>'s blog" />
+ <link rel="stylesheet" href="fugitive.css" type="text/css" media="screen" charset="utf-8" />
+ <link rel="stylesheet" href="print.css" type="text/css" media="print" charset="utf-8" />
+ <link rel="contents" href="archives.html" />
+ <?fugitive ifset:article_file ?>
+ <link rel="canonical" href="<?fugitive article_file ?>.html" />
+ <?fugitive endifset:article_file ?>
+ <?fugitive ifset:article_previous_file ?>
+ <link rel="prev" href="<?fugitive article_previous_file ?>.html" />
+ <?fugitive endifset:article_previous_file ?>
+ <?fugitive ifset:article_next_file ?>
+ <link rel="next" href="<?fugitive article_next_file ?>.html" />
+ <?fugitive endifset:article_next_file ?>
+ </head>
+ <body>
+ <div id="container">
+ <?fugitive include:nav-header.html ?>
+ <article>
+ <header>
+ <h1>Archives</h1>
+ </header>
+ <div>
+ <dl>
+ <?fugitive foreach:article ?>
+ <dt>
+ <time datetime="<?fugitive article_cdatetime ?>">
+ <?fugitive article_cdate ?> at <?fugitive article_ctime ?>
+ </time>
+ </dt>
+ <dd>
+ <a href="<?fugitive article_file ?>.html">
+ <?fugitive article_title ?>
+ </a>
+ <?fugitive ifset:article_mdatetime ?>
+ <br /><small>last update on
+ <time datetime="<?fugitive article_mdatetime ?>">
+ <?fugitive article_mdate ?> at <?fugitive article_mtime ?>
+ </time>
+ </small>
+ <?fugitive endifset:article_mdatetime ?>
+ </dd>
+ <?fugitive endforeach:article ?>
+ </dl>
+ </div>
+ </article>
+ <?fugitive include:footer.html ?>
+ </div>
+ </body>
+</html>
diff --git a/default-files/article.html b/default-files/article.html
new file mode 100644
index 0000000..40066c5
--- /dev/null
+++ b/default-files/article.html
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE html>
+<html dir="ltr" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title><?fugitive-install name ?>'s blog: <?fugitive article_title ?></title>
+ <meta http-equiv="Content-type" content="application/xhtml+xml; charset=utf-8" />
+ <meta name="author" content="<?fugitive-install name ?>" />
+ <meta name="description" content="<?fugitive-install name ?>'s blog" />
+ <link rel="stylesheet" href="fugitive.css" type="text/css" media="screen" charset="utf-8" />
+ <link rel="stylesheet" href="print.css" type="text/css" media="print" charset="utf-8" />
+ <link rel="contents" href="archives.html" />
+ <?fugitive ifset:article_file ?>
+ <link rel="canonical" href="<?fugitive article_file ?>.html" />
+ <?fugitive endifset:article_file ?>
+ <?fugitive ifset:article_previous_file ?>
+ <link rel="prev" href="<?fugitive article_previous_file ?>.html" />
+ <?fugitive endifset:article_previous_file ?>
+ <?fugitive ifset:article_next_file ?>
+ <link rel="next" href="<?fugitive article_next_file ?>.html" />
+ <?fugitive endifset:article_next_file ?>
+ </head>
+ <body>
+ <div id="container">
+ <?fugitive include:nav-header.html ?>
+ <article>
+ <header>
+ <h1><?fugitive article_title ?></h1>
+ </header>
+ <footer>
+ by <?fugitive article_cauthor ?>, on
+ <time datetime="<?fugitive article_cdatetime ?>">
+ <?fugitive article_cdate ?> at <?fugitive article_ctime ?>
+ </time>
+ <?fugitive ifset:article_mdatetime ?>
+ <br /><small>last update by <?fugitive article_mauthor ?>, on
+ <time datetime="<?fugitive article_mdatetime ?>">
+ <?fugitive article_mdate ?> at <?fugitive article_mtime ?>
+ </time>
+ </small>
+ <?fugitive endifset:article_mdatetime ?>
+ </footer>
+ <div>
+ <?fugitive article_content ?>
+ </div>
+ </article>
+ <?fugitive include:footer.html ?>
+ </div>
+ </body>
+</html>
diff --git a/default-files/footer.html b/default-files/footer.html
new file mode 100644
index 0000000..6040184
--- /dev/null
+++ b/default-files/footer.html
@@ -0,0 +1,13 @@
+ <footer>
+ <p>
+ <a href="http://www.gnu.org/copyleft/copyleft.html">copyleft</a>
+ <?fugitive-install name ?> <?fugitive-install year ?>
+ &mdash;
+ powered by <a href="http://gitorious.org/fugitive">fugitive</a>
+ </p>
+ <p>
+ last build was <?fugitive commit_hash ?>
+ at <time><?fugitive commit_datetime ?></time>,<br />
+ subject was <q><?fugitive commit_subject ?></q>
+ </p>
+ </footer>
diff --git a/default-files/fugitive.css b/default-files/fugitive.css
new file mode 100644
index 0000000..1c4eaba
--- /dev/null
+++ b/default-files/fugitive.css
@@ -0,0 +1,260 @@
+* { margin: 0; padding: 0; }
+html, body {
+ background-color: #fff;
+ margin: 0;
+ padding: 0;
+ font-family: monospace;
+ font-size: 1em;
+ text-align: center;
+ color: #333;
+}
+#container {
+ padding: 0 1em;
+ margin: 0 auto;
+ width: 51%;
+ min-width: 480px;
+}
+nav {
+ display: block;
+ margin: 0;
+ padding: 0.3em 1em;
+ border: 1px solid #ccc;
+ border-top: 0;
+ background: #f2f2f2;
+ color: #aaa;
+ font-size: 1.3em;
+ text-align: left;
+}
+nav ul { padding: 0; margin: 0; }
+nav ul.nav { float: right; }
+nav ul li { display: inline; }
+nav ul li:before { content: " — "; }
+nav ul li:first-child:before { content: ""; }
+nav ul li a {
+ color: #aaa;
+ text-decoration: none;
+}
+nav ul li a:hover { color: #888; }
+header {
+ display: block;
+ margin: 1em 0;
+ padding: 1em;
+ border: 4px double #ccc;
+}
+header h1 {
+ margin: 0 0 0.3em 0;
+ madding: 0;
+ font-size: 2em;
+ font-weight: normal;
+}
+header q {
+ font-size: 1.2em;
+ font-style: italic;
+}
+article {
+ display: block;
+ text-align: left;
+ counter-reset: code;
+ counter-reset: figure;
+ counter-reset: section;
+ counter-reset: subsection;
+}
+article header {
+ display: block;
+ margin: 2em 0 0 0;
+ padding: 0;
+ border-style: none;
+ border-bottom: 1px dashed #ccc;
+}
+article header h1 {
+ margin: 0;
+ padding: 0 0 0.1em 0;
+ font-size: 1.5em;
+ font-weight: bold;
+}
+article footer {
+ display: block;
+ margin: 0.3em 0 2em 0;
+ padding: 0;
+ border-style: none;
+ color: #888;
+ font-size: 1em;
+ text-align: right;
+}
+article > div {
+ margin: 0;
+ padding: 0;
+ line-height: 1.5em;
+ font-size: 1.1em;
+}
+article > div a {
+ color: #08f;
+ text-decoration: none;
+}
+article > div a:hover { text-decoration: underline; }
+article > div a:visited { color: #048; }
+article > div h2 {
+ margin: 1em 0 0.5em 0;
+ padding: 0;
+ font-size: 1.4em;
+ font-weight: normal;
+ counter-increment: section;
+ counter-reset: subsection;
+}
+article > div h2:before {
+ display: inline;
+ content: counter(section) ". ";
+}
+article > div h3 {
+ margin: 1em 0 0.5em 0;
+ padding: 0;
+ font-size: 1.2em;
+ font-weight: bold;
+}
+article > div h3:before {
+ display: inline;
+ content: counter(section) "." counter(subsection) ". ";
+ counter-increment: subsection;
+}
+article > div p:first-child:first-letter {
+ font-size: 1.5em;
+ font-weight: bold;
+}
+article > div p {
+ margin: 1em 0;
+ text-indent: 2em;
+}
+article > div ul {
+ margin: 1em 0;
+ padding: 0 0 0 3em;
+}
+article > div ul li {
+ margin: 0 0 0.2em 0;
+ padding: 0 0 0 0.5em;
+ list-style-position: outside;
+ list-style-type: circle;
+}
+article > div dl {
+ margin: 1em 0;
+ padding: 0;
+}
+article > div dl dt {
+ margin: 0;
+ padding: 0;
+ font-weight: bold;
+}
+article > div dl dd {
+ margin: 0 0 0.3em 0;
+ padding: 0 0 0 2em;
+}
+article > div blockquote {
+ margin: 1em 0;
+ padding: 0.5em;
+ padding-left: 2em;
+ background: #f2f2f2;
+ border-left: 0.1em solid #ccc;
+}
+article > div blockquote p {
+ margin: 0.5em 0;
+}
+article > div code {
+ color: #eee;
+ background-color: #666;
+ padding: 0 0.2em;
+}
+article > div pre:before {
+ display: block;
+ padding: 0 0.5em;
+ font-size: 0.8em;
+ line-height: 1em;
+ background-color: #444;
+ content: "code " counter(code) ":";
+ counter-increment: code;
+}
+article > div pre {
+ margin: 1em 0;
+ padding: 0.5em;
+ overflow: auto;
+ color: #ccc;
+ background-color: #333;
+ max-height: 420px;
+}
+article > div pre .comment {
+ color: #888;
+}
+article > div pre .comment-delimiter {
+ color: #888;
+}
+article > div pre .constant {
+ color: #d0d;
+}
+article > div pre .function-name {
+ color: #27d;
+}
+article > div pre .keyword {
+ color: #dd0;
+}
+article > div pre .preprocessor {
+ color: #9c3;
+}
+article > div pre .string {
+ color: #3af;
+}
+article > div pre .type {
+ color: #fa0;
+}
+article > div pre .variable-name {
+ color: #0b0;
+}
+article > div figure {
+ display: block;
+ margin: 1em 0;
+ padding: 0;
+ text-align: center;
+}
+article > div figure figcaption {
+ display: block;
+}
+article > div figure figcaption:before {
+ display: inline;
+ content: "figure " counter(figure) ":";
+ counter-increment: figure;
+}
+article > div .left {
+ float: left;
+ margin: 0 1em 0.5em 0;
+}
+article > div .right {
+ float: right;
+ margin: 0 0 0.5em 1em;
+}
+article > div .center {
+ text-align: center;
+}
+article > div hr {
+ margin: 1.5em auto;
+ padding: 0;
+ height: 1px;
+ width: 80%;
+ border: none;
+ background-color: #aaa;
+}
+footer {
+ display: block;
+ margin: 3em 0 0 0;
+ padding: 1em;
+ border-top: 1px dotted #aaa;
+ color: #888;
+ font-size: 0.9em;
+ clear: both;
+}
+footer p {
+ margin: 0;
+ padding: 0;
+ line-height: 1.5em;
+}
+footer p a {
+ color: #666;
+ text-decoration: none;
+}
+
diff --git a/default-files/nav-header.html b/default-files/nav-header.html
new file mode 100644
index 0000000..300592d
--- /dev/null
+++ b/default-files/nav-header.html
@@ -0,0 +1,24 @@
+ <nav>
+ <?fugitive ifset:article_file ?>
+ <ul class="nav">
+ <?fugitive ifset:article_previous_file ?>
+ <li>
+ <a href="<?fugitive article_previous_file ?>.html">« previous</a>
+ </li>
+ <?fugitive endifset:article_previous_file ?>
+ <?fugitive ifset:article_next_file ?>
+ <li>
+ <a href="<?fugitive article_next_file ?>.html">next »</a>
+ </li>
+ <?fugitive endifset:article_next_file ?>
+ </ul>
+ <?fugitive endifset:article_file ?>
+ <ul>
+ <li><a href="index.html">home</a></li>
+ <li><a href="archives.html">archives</a></li>
+ </ul>
+ </nav>
+ <header>
+ <h1><?fugitive-install name ?>'s blog</h1>
+ <q>fugitive: a blog engine for hackers.</q>
+ </header>
diff --git a/default-files/print.css b/default-files/print.css
new file mode 100644
index 0000000..c386764
--- /dev/null
+++ b/default-files/print.css
@@ -0,0 +1,11 @@
+#container {
+ width: auto;
+ padding: 1em;
+ margin: 0;
+}
+nav, header, footer {
+ display: none;
+}
+article header, article footer {
+ display: block;
+}