aboutsummaryrefslogtreecommitdiffstats
path: root/pelican-striped-html5up/templates/article.html
diff options
context:
space:
mode:
authorAlexis Metaireau <alexis@notmyidea.org>2017-04-08 13:42:01 +0200
committerGitHub <noreply@github.com>2017-04-08 13:42:01 +0200
commit1e4e13ccf5b04fb21243f6f051796eca0baa3918 (patch)
tree57ac5a2ba6cc80e737f0476dda7eebeb11d656ac /pelican-striped-html5up/templates/article.html
parent7c80c7f33653e5baff14c59195041488d1dc4a45 (diff)
parent36c2ef5937c24f9f276f75ac439ec2670f33e5b3 (diff)
downloadpelican-themes-1e4e13ccf5b04fb21243f6f051796eca0baa3918.tar.gz
Merge pull request #503 from aroaminggeek/master
html5up-striped
Diffstat (limited to 'pelican-striped-html5up/templates/article.html')
-rw-r--r--pelican-striped-html5up/templates/article.html49
1 files changed, 49 insertions, 0 deletions
diff --git a/pelican-striped-html5up/templates/article.html b/pelican-striped-html5up/templates/article.html
new file mode 100644
index 0000000..d405c65
--- /dev/null
+++ b/pelican-striped-html5up/templates/article.html
@@ -0,0 +1,49 @@
+{% extends "base.html" %}
+{% block head %}
+ {{ super() }}
+ {% if article.description %}
+ <meta name="description" content="{{article.summary}}" />
+ {% endif %}
+
+ {% for tag in article.tags %}
+ <meta name="tags" content="{{tag}}" />
+ {% endfor %}
+
+{% endblock %}
+
+{% block content %}
+<div id="content">
+<div class="inner">
+ <article class="box post post-excerpt">
+ <header>
+ <h2><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2>
+ <p>{{article.headline}}</p>
+ </header>
+ <div class="info">
+ <span class="date" datetime="{{ article.date.isoformat() }}"><span class="month">{{ article.date | strftime('%b') }}</span> <span class="day">{{ article.date | strftime('%d') }}</span> <span class="month"> {{ article.date | strftime('%Y') }}</span></span>
+ <ul class="stats">
+ <li><a href="mailto:?Subject={{article.title}}&Body=I%20saw%20this%20and%20thought%20of%20you!%20 {{ SITEURL }}/{{ article.url }}" class="icon fa-envelope">&nbsp;</a></li>
+ <li><a href="http://reddit.com/submit?url={{ SITEURL }}/{{ article.url }}&title=#{{article.title}}"" class="icon fa-reddit">&nbsp;</a></li>
+ <li><a href="https://twitter.com/share?url={{ SITEURL }}/{{ article.url }}&text=&hashtags=GnotC" class="icon fa-twitter">&nbsp;</a></li>
+ <li><a href="https://www.facebook.com/sharer.php?u={{ SITEURL }}/{{ article.url }}" class="icon fa-facebook">&nbsp;</a></li>
+ </ul>
+ </div><!-- /.post-info -->
+ <div class="entry-content"> &nbsp; </div><!-- /.entry-content -->
+ </article>
+ {{ article.content }}
+ </div><!-- /.entry-content -->
+ <!-- Pagination -->
+ <div class="pagination">
+ {% if article.prev_article %}
+ <a class="button previous" href="{{ SITEURL }}/{{ article.prev_article.url}}">
+ {{ article.prev_article.title }}
+ </a>
+ {% endif %}
+ {% if article.next_article %}
+ <a href="{{ SITEURL }}/{{ article.next_article.url}}" class="button next">{{ article.next_article.title }}</a>
+ {% endif %}
+ </div>
+
+</div>
+</div>
+{% endblock %}