diff options
author | Pachamaltese <mvargas@dcc.uchile.cl> | 2017-04-08 08:49:35 -0300 |
---|---|---|
committer | Alexis Metaireau <alexis@notmyidea.org> | 2017-04-08 13:49:35 +0200 |
commit | b201e57315350340366ca8d2659e5429b85aab10 (patch) | |
tree | 2b6fe40e630e8916285d9293da8e057d50b30db9 /medio/templates/includes | |
parent | aad467728fc44d967a410cea977bf67a67355fb6 (diff) | |
download | pelican-themes-b201e57315350340366ca8d2659e5429b85aab10.tar.gz |
uploaded medio theme (#477)
* uploaded medio theme
* cons example
* Added example_pelicanconf.py
Diffstat (limited to 'medio/templates/includes')
-rwxr-xr-x | medio/templates/includes/post_metadata.html | 11 | ||||
-rwxr-xr-x | medio/templates/includes/posts.html | 24 |
2 files changed, 35 insertions, 0 deletions
diff --git a/medio/templates/includes/post_metadata.html b/medio/templates/includes/post_metadata.html new file mode 100755 index 0000000..3fd4efd --- /dev/null +++ b/medio/templates/includes/post_metadata.html @@ -0,0 +1,11 @@ +<div class="pure-u-3-4 meta-data"> + <a href="{{ SITEURL }}/{{ article.category.url }}" class="category">{{ article.category }}</a><br /> + + {% for author in article.authors %} + <a class="author" href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a> + {% endfor %} + — <abbr title="{{ article.date.isoformat() }}">{{ article.locale_date }}</abbr> + {% if article.readtime_minutes %} + — {{ article.readtime_minutes }} min read + {% endif %} +</div> diff --git a/medio/templates/includes/posts.html b/medio/templates/includes/posts.html new file mode 100755 index 0000000..9df7b0b --- /dev/null +++ b/medio/templates/includes/posts.html @@ -0,0 +1,24 @@ +{% for article in articles_page.object_list %} +<div class="post"> + <div class="post-meta pure-g"> + + {% if article.category|string in MEDIUS_CATEGORIES %} + <div class="pure-u"> + <img src="{{ MEDIUS_CATEGORIES.get(article.category|string).thumbnail }}" class="post-avatar" alt="{{ article.category|striptags }}"> + </div> + {% endif %} + + {% include "includes/post_metadata.html" %} + </div> + {% if article.thumbnail %} + <a href="{{ SITEURL }}/{{ article.url }}"><img src="{{ article.thumbnail }}" alt="{{ article.title|striptags }}" class="post-image"/></a> + {% endif %} + <h2><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2> + <div class="post-content"> + {{ article.summary }} + </div> + <div class="post-footer"> + <a href="{{ SITEURL }}/{{ article.url }}">Read more</a> + </div> +</div> +{% endfor %} |