motyl

Opinionated blog-aware static site generator written in Ruby
Log | Files | Refs | README | LICENSE

commit da69f6810717257946b3868a0f03973d892d68d1
parent acbe586fe2b481f067fc8988035ae38bad76e2b7
Author: Frederic Cambus <fred@statdns.com>
Date:   Thu, 25 Feb 2016 23:15:17 +0100

Importing default template

Diffstat:
Atemplates/archives.mustache | 10++++++++++
Atemplates/footer.mustache | 8++++++++
Atemplates/header.mustache | 27+++++++++++++++++++++++++++
Atemplates/page.mustache | 5+++++
Atemplates/post.mustache | 9+++++++++
5 files changed, 59 insertions(+), 0 deletions(-)

diff --git a/templates/archives.mustache b/templates/archives.mustache @@ -0,0 +1,10 @@ +{{> header}} +<h1>{{page.title}}</h1> +{{#site.posts}} +<h3><a href="/{{url}}">{{title}}</a></h3> +{{date}} +{{#categoryDisplay}} + &middot; <a href="/categories/{{url}}">{{category}}</a> +{{/categoryDisplay}} +{{/site.posts}} +{{> footer}} diff --git a/templates/footer.mustache b/templates/footer.mustache @@ -0,0 +1,8 @@ + <footer> + <hr /> + Copyright (c) {{site.copyright}}-{{site.year}}, <a href="{{site.url}}">{{site.author}}</a> + <div id="powered">Powered by <a href="">Motyl</a></div> + </footer> + </div> +</body> +</html> diff --git a/templates/header.mustache b/templates/header.mustache @@ -0,0 +1,27 @@ +<!DOCTYPE html> +<html> +<head> + <meta charset="utf-8"> + <title>{{page.title}} - {{site.name}}</title> + + <meta name="description" content="{{page.description}}" /> + <meta name="keywords" content="{{page.keywords}}" /> + <meta name="author" content="{{site.author}}" /> + <meta name="robots" content="index, follow, archive" /> + + <link rel="canonical" href="{{{site.url}}}{{{page.url}}}" /> + + <link rel="stylesheet" href="/styles/motyl.css" type="text/css" /> +</head> + +<body> + <header> + <h2><a href="/">{{site.author}}</a></h2> + {{#site.pages}} + <a href="{{{url}}}">{{{title}}}</a> + {{/site.pages}} + </header> + + <hr /> + + <div id="container"> diff --git a/templates/page.mustache b/templates/page.mustache @@ -0,0 +1,4 @@ +{{> header}} +<h1>{{page.title}}</h1> +{{{page.content}}} +{{> footer}}+ \ No newline at end of file diff --git a/templates/post.mustache b/templates/post.mustache @@ -0,0 +1,8 @@ +{{> header}} +<h1>{{page.title}}</h1> +{{page.date}} +{{#page.categoryDisplay}} + &middot; <a href="/categories/{{url}}">{{category}}</a> +{{/page.categoryDisplay}} +{{{page.content}}} +{{> footer}}+ \ No newline at end of file