aboutsummaryrefslogtreecommitdiffstats
path: root/Just-Read/templates
diff options
context:
space:
mode:
authorNatalia Ventre <natalia.ventre@gmail.com>2012-02-08 21:58:21 -0200
committerNatalia Ventre <natalia.ventre@gmail.com>2012-02-08 21:58:21 -0200
commit612ca2d53693f2ba41b6a654a1dc554238787a5a (patch)
tree6db0daf0c21f5f2a8f2f953277b1ba2eedc55648 /Just-Read/templates
parent7fc66f3071afb214d26bf0a7b20048a751f223db (diff)
downloadpelican-themes-612ca2d53693f2ba41b6a654a1dc554238787a5a.zip
pelican-themes-612ca2d53693f2ba41b6a654a1dc554238787a5a.tar.gz
pelican-themes-612ca2d53693f2ba41b6a654a1dc554238787a5a.tar.bz2
added Just Read theme
Diffstat (limited to 'Just-Read/templates')
-rw-r--r--Just-Read/templates/archives.html21
-rw-r--r--Just-Read/templates/article.html29
-rw-r--r--Just-Read/templates/base.html65
-rw-r--r--Just-Read/templates/categories.html1
-rw-r--r--Just-Read/templates/category.html17
-rw-r--r--Just-Read/templates/index.html26
-rw-r--r--Just-Read/templates/metadata.html12
-rw-r--r--Just-Read/templates/page.html10
-rw-r--r--Just-Read/templates/tag.html16
-rw-r--r--Just-Read/templates/tags.html1
10 files changed, 198 insertions, 0 deletions
diff --git a/Just-Read/templates/archives.html b/Just-Read/templates/archives.html
new file mode 100644
index 0000000..355fe6f
--- /dev/null
+++ b/Just-Read/templates/archives.html
@@ -0,0 +1,21 @@
+{% extends "base.html" %}
+{% block title %}{{ SITENAME }} <small>[archive]</small>{% endblock %}
+{% block content %}
+<div role="main" class="content clearfix">
+<div class="wrapper main">
+ {% for year, date_year in dates|groupby( 'date.year' ) %}
+ <h2>{{ year }}</h2>
+ {% for month, articles in date_year|groupby( 'date.month' ) %}
+ <h3>{{ articles[ 0 ].date.strftime( '%B' ) }}</h3>
+
+ <ol class="archive">
+ {% for article in articles %}
+ <li class="clearfix"><a href="{{ article.url }}"><time datetime="{{ article.date.isoformat() }}" pubdate>{{ article.locale_date }}</time> {{ article.title }}</a></li>
+ {% endfor %}
+ </ol>
+
+ {% endfor %}
+ {% endfor %}
+</div>
+</div>
+{% endblock %} \ No newline at end of file
diff --git a/Just-Read/templates/article.html b/Just-Read/templates/article.html
new file mode 100644
index 0000000..a5bf08f
--- /dev/null
+++ b/Just-Read/templates/article.html
@@ -0,0 +1,29 @@
+{% extends "base.html" %}
+{% block title %}{{ article.title }} - {{ SITENAME }}{% endblock %}
+{% block content %}
+<div role="main" class="content clearfix">
+ <article>
+ <div class="post wrapper">
+ <h1>{{ article.title }}</h1>
+ {{ article.content }}
+
+ {% if DISQUS_SITENAME %}
+ <div class="comments">
+ <h2>Comments !</h2>
+ <div id="disqus_thread"></div>
+ <script type="text/javascript">
+ var disqus_identifier = "{{ article.url }}";
+ (function() {
+ var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
+ dsq.src = 'http://{{ DISQUS_SITENAME }}.disqus.com/embed.js';
+ (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
+ })();
+ </script>
+ </div>
+ {% endif %}
+ </div>
+
+ {% include 'metadata.html' %}
+ </article>
+</div>
+{% endblock %} \ No newline at end of file
diff --git a/Just-Read/templates/base.html b/Just-Read/templates/base.html
new file mode 100644
index 0000000..7a14567
--- /dev/null
+++ b/Just-Read/templates/base.html
@@ -0,0 +1,65 @@
+<!doctype html>
+<html lang="{{ HTML_LANG }}">
+<head>
+ <meta charset="utf-8"/>
+ <title>{% block title %}{{ SITENAME }}{%endblock%}</title>
+ <meta name="author" content="{{ AUTHOR }}">
+
+ <meta name="HandheldFriendly" content="True">
+ <meta name="MobileOptimized" content="320">
+ <meta name="viewport" content="width=device-width, target-densitydpi=160dpi, initial-scale=1.0">
+
+ <link href='http://fonts.googleapis.com/css?family=Droid+Sans:700,400|Droid+Sans+Mono' rel='stylesheet' type='text/css'>
+ <link rel="stylesheet" href="{{ SITEURL }}/theme/css/{{ CSS_FILE }}" type="text/css" />
+
+ <!--[if lt IE 9]>
+ <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
+ <![endif]-->
+
+ <link href="{{ SITEURL }}/{{ FEED }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} ATOM Feed" />
+ {% if FEED_RSS %}
+ <link href="{{ SITEURL }}/{{ FEED_RSS }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} RSS Feed" />
+ {% endif %}
+</head>
+
+<body>
+ <header class="clearfix" role="banner">
+ <div class="wrapper">
+ <h1 class="huge"><a href="{{ SITEURL }}">{{ SITENAME }}</a></h1>
+ </div>
+ </header>
+
+ {% block content %}
+ {% endblock %}
+
+
+ <footer class="clearfix">
+ <div class="wrapper pages">
+ <ul class="nav">
+ {% for p in PAGES %}
+ <li><a href="{{ SITEURL }}/pages/{{ p.url }}">{{ p.title }}</a></li>
+ {% endfor %}
+ <li><a href="{{ SITEURL }}/archives.html">Archive</a></li>
+ {% if FEED_RSS %}
+ <li><a href="{{ SITEURL }}/{{ FEED_RSS }}">RSS Feed</a></li>
+ {% endif %}
+ </ul>
+ </div>
+
+ <div class="copy wrapper">
+ <a href="https://twitter.com/{{ TWITTER_USERNAME }}" class="twitter-follow-button" data-show-count="false" data-size="large">Follow @{{ TWITTER_USERNAME }}</a>
+ <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
+
+ <p role="contentinfo">© 2012 {{ AUTHOR }}<br>
+ Proudly powered by <a href="http://alexis.notmyidea.org/pelican/">Pelican</a>, which takes great advantages of <a href="http://python.org">Python</a>.</p>
+ </div>
+ </footer>
+
+ <script>
+ var _gaq=[['_setAccount','{{ GOOGLE_ANALYTICS }}'],['_trackPageview']];
+ (function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
+ g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
+ s.parentNode.insertBefore(g,s)}(document,'script'));
+ </script>
+</body>
+</html> \ No newline at end of file
diff --git a/Just-Read/templates/categories.html b/Just-Read/templates/categories.html
new file mode 100644
index 0000000..6b889e8
--- /dev/null
+++ b/Just-Read/templates/categories.html
@@ -0,0 +1 @@
+<!--must list all the tags. Can be a tag cloud.--> \ No newline at end of file
diff --git a/Just-Read/templates/category.html b/Just-Read/templates/category.html
new file mode 100644
index 0000000..20cdc17
--- /dev/null
+++ b/Just-Read/templates/category.html
@@ -0,0 +1,17 @@
+{% extends "base.html" %}
+{% block title %}{{ category }} - {{ SITENAME }}{% endblock %}
+
+{% block content %}
+<div role="main" class="content clearfix">
+<div class="wrapper main">
+ <h2>Posts categorized under: {{ category }}</h2>
+
+ <ol class="archive">
+ {% for article in articles %}
+ <li class="clearfix"><a href="{{ SITEURL }}/{{ article.url }}"><time datetime="{{ article.date.isoformat() }}" pubdate>{{ article.locale_date }}</time> {{ article.title }}</a></li>
+ {% endfor %}
+ </ol>
+
+</div>
+</div>
+{% endblock %} \ No newline at end of file
diff --git a/Just-Read/templates/index.html b/Just-Read/templates/index.html
new file mode 100644
index 0000000..262c23e
--- /dev/null
+++ b/Just-Read/templates/index.html
@@ -0,0 +1,26 @@
+{% extends "base.html" %}
+{% block content_title %}{% endblock %}
+
+{% block content %}
+<div role="main" class="content clearfix">
+{% for article in articles %}
+
+ {% if loop.index == 1 %}
+ <article class="wrapper main">
+ <h1><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h1>
+ {{ article.summary }} <a class="more" href="{{ SITEURL }}/{{ article.url }}">read more</a>
+ </article>
+
+ {% if loop.length > 1 %}
+ <div class="wrapper main">
+ <h3>More posts</h3>
+ <ol class="archive">
+ {% endif %}
+ {% else %}
+ <li class="clearfix"><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title}}"><time datetime="{{ article.date.isoformat() }}" pubdate>{{ article.locale_date }}</time> {{ article.title }}</a></li>
+ {% endif %}
+ {% endfor %}
+ </ol>
+ </div>
+</div>
+{% endblock content %} \ No newline at end of file
diff --git a/Just-Read/templates/metadata.html b/Just-Read/templates/metadata.html
new file mode 100644
index 0000000..842a5d8
--- /dev/null
+++ b/Just-Read/templates/metadata.html
@@ -0,0 +1,12 @@
+<div class="meta wrapper">
+ <time datetime="{{ article.date.isoformat() }}" pubdate>{{ article.locale_date }}</time>
+ <ul class="tags">
+ <li><a href="{{ SITEURL }}/category/{{ article.category }}.html">{{ article.category }}</a></li>
+{% if article.tags %}
+ {% for tag in article.tags %}
+ <li><a href="{{ SITEURL }}/tag/{{ tag }}.html">{{ tag }}</a></li>
+ {% endfor %}
+{% endif %}
+ </ul>
+ {% if PDF_PROCESSOR %}<p><a href="{{ SITEURL }}/pdf/{{ article.slug }}.pdf">Download the .pdf</a></p>{% endif %}
+</div> \ No newline at end of file
diff --git a/Just-Read/templates/page.html b/Just-Read/templates/page.html
new file mode 100644
index 0000000..9402f36
--- /dev/null
+++ b/Just-Read/templates/page.html
@@ -0,0 +1,10 @@
+{% extends "base.html" %}
+{% block title %}{{ article.title }}{% endblock %}
+{% block content %}
+<div role="main" class="content clearfix">
+ <div class="post wrapper">
+ <h1>{{ page.title }}</h1>
+ {{ page.content }}
+ </div>
+</div>
+{% endblock %} \ No newline at end of file
diff --git a/Just-Read/templates/tag.html b/Just-Read/templates/tag.html
new file mode 100644
index 0000000..f5ebd56
--- /dev/null
+++ b/Just-Read/templates/tag.html
@@ -0,0 +1,16 @@
+{% extends "base.html" %}
+{% block title %}{{ tag }} - {{ SITENAME }}{% endblock %}
+{% block content %}
+<div role="main" class="content clearfix">
+<div class="wrapper main">
+ <h2>Post tagged: {{ tag }}</h2>
+
+ <ol class="archive">
+ {% for article in articles %}
+ <li class="clearfix"><a href="{{ SITEURL }}/{{ article.url }}"><time datetime="{{ article.date.isoformat() }}" pubdate>{{ article.locale_date }}</time> {{ article.title }}</a></li>
+ {% endfor %}
+ </ol>
+
+</div>
+</div>
+{% endblock %} \ No newline at end of file
diff --git a/Just-Read/templates/tags.html b/Just-Read/templates/tags.html
new file mode 100644
index 0000000..6b889e8
--- /dev/null
+++ b/Just-Read/templates/tags.html
@@ -0,0 +1 @@
+<!--must list all the tags. Can be a tag cloud.--> \ No newline at end of file