diff options
author | Alexis Metaireau <alexis@notmyidea.org> | 2012-02-26 09:35:37 -0800 |
---|---|---|
committer | Alexis Metaireau <alexis@notmyidea.org> | 2012-02-26 09:35:37 -0800 |
commit | a006f0a70f9e432908d97bd9ecdb37e4b8f5d328 (patch) | |
tree | 54be27510ef7625bc06fa2ac44959be9992daedb /Just-Read/templates/archives.html | |
parent | 7fc66f3071afb214d26bf0a7b20048a751f223db (diff) | |
parent | aa50023c673fc9f786b20bfe21607b620129a5d3 (diff) | |
download | pelican-themes-a006f0a70f9e432908d97bd9ecdb37e4b8f5d328.tar.gz |
Merge pull request #14 from nataliav/master
Just Read theme
Diffstat (limited to 'Just-Read/templates/archives.html')
-rw-r--r-- | Just-Read/templates/archives.html | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/Just-Read/templates/archives.html b/Just-Read/templates/archives.html new file mode 100644 index 0000000..72fd2a5 --- /dev/null +++ b/Just-Read/templates/archives.html @@ -0,0 +1,46 @@ +{% extends "base.html" %} +{% block title %}Archivo - {{ SITENAME }}{% endblock %} + +{% block scripts %} + <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> + <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js"></script> +{% endblock %} + + +{% block content %} +<div role="main" class="content clearfix"> +<div id="jquerytabs" class="wrapper main"> + <ul class="tabmenu clearfix"> + <li><a href="#fecha">By date</a></li> + <li><a href="#etiqueta">By topic</a></li> + </ul> + + <div id="fecha"> + {% for year, date_year in dates|groupby( 'date.year' )|sort(reverse=True) %} + <h2>{{ year }}</h2> + <ol class="archive"> + {% for article in date_year %} + <li class="clearfix"><a href="{{ article.url }}"><time datetime="{{ article.date.isoformat() }}" pubdate>{{ article.locale_date }}</time> {{ article.title }}</a></li> + {% endfor %} + </ol> + {% endfor %} + </div> + + <div id="etiqueta"> + <h2>Tags</h2> + <ul class="tag"> + {% for tag in tag_cloud|sort %} + <li class="tag-{{ tag.1 }}"><a href="{{ SITEURL }}/tag/{{ tag.0 }}.html">{{ tag.0 }}</a></li> + {% endfor %} + </ul> + </div> + +</div> +</div> + +<script> + $(function() { + $("#jquerytabs").tabs(); + }); +</script> +{% endblock %}
\ No newline at end of file |