aboutsummaryrefslogtreecommitdiffstats
path: root/notebook/templates/article.html
diff options
context:
space:
mode:
authorquack1 <alexandre.deloup@gmail.com>2013-04-20 01:04:16 +0200
committerquack1 <alexandre.deloup@gmail.com>2013-04-20 01:04:16 +0200
commit18dd0bb33c9f2570bd83ef2c31f89be0cdbb71ba (patch)
tree5729d8d1d5c33ed31e3330d553f360862831296d /notebook/templates/article.html
parent53d6c4254aa2b4781b850419d63a40527c307d71 (diff)
downloadpelican-themes-18dd0bb33c9f2570bd83ef2c31f89be0cdbb71ba.tar.gz
Add theme 'notebook'. The original repository is https://github.com/quack1/notebook. There are some issues/enhancement to do, so if you work on it, please make pull requests to my own repo, so I can validate them and then add to this global repo. Thanks\!
Diffstat (limited to 'notebook/templates/article.html')
-rw-r--r--notebook/templates/article.html60
1 files changed, 60 insertions, 0 deletions
diff --git a/notebook/templates/article.html b/notebook/templates/article.html
new file mode 100644
index 0000000..f3d6212
--- /dev/null
+++ b/notebook/templates/article.html
@@ -0,0 +1,60 @@
+{% extends "base.html" %}
+{% block head %}
+{{ super() }}
+<meta name="twitter:creator" content="{{ article.author }}">
+<meta name="twitter:url" content="{{ SITEURL }}/{{ article.url }}">
+<meta name="twitter:title" content="{{ article.title }}">
+<meta name="twitter:description" content="{{ article.summary }}">
+{% endblock head %}
+{% block title %}{{ article.title }}{% endblock %}
+{% block content %}
+<section id="content">
+ <article>
+ <header class="post_list">
+ <h2 class="post_title"><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title }}">{{ article.title }}</a></h2>
+ <span>Par </span>
+ <a href="{{ SITEURL }}/{{ article.author.url }}">@{{ article.author }}</a>
+ <span> dans </span>
+ <span class="post_category"><a href="{{ SITEURL }}/{{ article.category.url }}" rel="bookmark" title="Permalink to {{ article.category|striptags }}">[ {{ article.category }} ]</a></span>
+ <span> le </span>
+ <span class="post_date">{{ article.locale_date }}</span>
+ <div><span>Tags : </span>
+ {% if article.tags %}
+ {% for tag in article.tags %}
+ <span><a href="{{ SITEURL }}/{{ tag.url }}">#{{ tag }}, </a></span>
+ {% endfor %}
+ {% endif %}
+ </div>
+
+ <div class="entry-social">
+ <span class="twitter"><a href="https://twitter.com/home/?status={{ article.title }}%20%7C%20{{ SITEURL }}/{{article.url}}%20by%20@{{TWITTER_USERNAME}}" target="_blank">Twitter</a></span>
+
+ <span class="gplus"><a href="http://plus.google.com/share?url={{ SITEURL }}/{{article.url}}&hl=fr" target="_blank">Google+</a></span>
+
+ <span class="facebook"><a href="http://www.facebook.com/sharer.php?u={{ SITEURL }}/{{article.url}}&t={{ article.title }}" target="_blank">Facebook</a></span>
+
+ <span class="mail"><a href="mailto:?subject={{ article.title }}&amp;body=Viens découvrir un article à propos de [{{ article.title }}] sur le site de {{ AUTHOR }}. {{ SITEURL }}/{{article.url}}" title="Share by Email" target="_blank">Mail</a></span>
+ </div>
+ </header>
+ <div class="entry-content">
+ {{ article.content }}
+ </div>
+ {% 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 %}
+ </article>
+</section>
+{% endblock %} \ No newline at end of file