summaryrefslogtreecommitdiff
path: root/src/templates
diff options
context:
space:
mode:
Diffstat (limited to 'src/templates')
-rw-r--r--src/templates/article.tmpl16
-rw-r--r--src/templates/header.tmpl14
-rw-r--r--src/templates/index.tmpl19
-rw-r--r--src/templates/left.tmpl28
-rw-r--r--src/templates/parent.tmpl13
-rw-r--r--src/templates/son.tmpl9
6 files changed, 99 insertions, 0 deletions
diff --git a/src/templates/article.tmpl b/src/templates/article.tmpl
new file mode 100644
index 0000000..7481a59
--- /dev/null
+++ b/src/templates/article.tmpl
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html lang="fr">
+ {{> header }}
+ <body>
+ <div class="decal_panel">
+ <div class="marge" for="{{domTitle}}"></div>
+ <article class="post" id="{{domTitle}}">
+ <section>
+ {{{ content }}}
+ </section>
+ </article>
+ <div class="sidenotes" for="{{domTitle}}"></div>
+ </div>
+ {{> leftPanel }}
+ </body>
+</html>
diff --git a/src/templates/header.tmpl b/src/templates/header.tmpl
new file mode 100644
index 0000000..d30cae8
--- /dev/null
+++ b/src/templates/header.tmpl
@@ -0,0 +1,14 @@
+<head>
+<meta charset="utf-8" />
+ <title>{{ title }}</title>
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
+ <link rel="canonical" href="CANONIC"/>
+ <link rel="shortcut icon" href="/s/img/ache.ico" />
+ <link href="/s/css/style.css" rel="stylesheet"/>
+ <noscript>
+ <link href="/s/css/katex.css" rel="stylesheet"/>
+ </noscript>
+ <script src="/s/js/main.js" defer></script>
+ <meta name= "description" content="ache: {{ description }} " />
+ <link rel="alternate" type="application/rss+xml" href="/rss.xml">
+</head>
diff --git a/src/templates/index.tmpl b/src/templates/index.tmpl
new file mode 100644
index 0000000..cabaf7f
--- /dev/null
+++ b/src/templates/index.tmpl
@@ -0,0 +1,19 @@
+
+<!DOCTYPE html>
+<html lang="fr">
+ {{>header }}
+ <body>
+ {{#articles}}
+ <div class="decal_panel">
+ <div class="marge" for="{{domTitle}}"></div>
+ <article class="post" id="{{domTitle}}">
+ <section>
+ {{{ intro }}}
+ </section>
+ </article>
+ <div class="sidenotes" for="{{domTitle}}"></div>
+ </div>
+ {{/articles}}
+ {{> leftPanel }}
+ </body>
+</html>
diff --git a/src/templates/left.tmpl b/src/templates/left.tmpl
new file mode 100644
index 0000000..985f356
--- /dev/null
+++ b/src/templates/left.tmpl
@@ -0,0 +1,28 @@
+<nav tabindex="0" id="harr" class="hide_arrow" role="button">
+ {{{ svg.lt }}}
+</nav>
+<aside id="side-bar">
+ {{{ svg.ache }}}
+ <h2> Ache </h2>
+ <div id="desc"><div id="desc_intro">Éternel étudiant en Math-Info.<br><span class="about">Autodidacte passionné,<br><div class="type_wrap"><span class="type">désormais ingénieur.</span></div></span></div><br> <span class="about">GNU\Linux, C, C++, Python, Math, autohébergement, décentralisation, P2P, commun, ... <br> </span><br></div>
+ <nav>
+ <ul>
+ <li class="sommaire_blien"><a href="/" title="L'accueil">home</a>
+ </li><li class="sommaire_blien"><a href="http://git.ache.one/" title="Dépôt git personnel">git</a>
+ </li>
+ </ul>
+ </nav>
+ <nav id="ontheweb">
+ <ul>
+ <li class="about_bar"><a href="https://twitter.com/arobase_che" title="Mon twitter abandonné">
+ {{{ svg.twitter }}}
+ </a></li>
+ <li class="about_bar"><a href="http://git.ache.one" title="Dépôt git personnel">
+ {{{ svg.git }}}
+ </a></li>
+ <li class="about_bar"><a href="/rss.xml" title="Flux RSS">
+ {{{ svg.rss }}}
+ </a></li>
+ </ul>
+ </nav>
+</aside>
diff --git a/src/templates/parent.tmpl b/src/templates/parent.tmpl
new file mode 100644
index 0000000..dcf9211
--- /dev/null
+++ b/src/templates/parent.tmpl
@@ -0,0 +1,13 @@
+{% block header %}
+This is the default content
+{% endblock %}
+
+<section class="left">
+ {% block left %}{% endblock %}
+</section>
+
+<section class="right">
+ {% block right %}
+ This is more content
+ {% endblock %}
+</section>
diff --git a/src/templates/son.tmpl b/src/templates/son.tmpl
new file mode 100644
index 0000000..9b16c70
--- /dev/null
+++ b/src/templates/son.tmpl
@@ -0,0 +1,9 @@
+{% extends "parent.html" %}
+
+{% block left %}
+This is the left side!
+{% endblock %}
+
+{% block right %}
+This is the right side!
+{% endblock %}