mirror of
https://github.com/vale981/ablog
synced 2025-03-05 09:11:38 -05:00
Fixed some templeate issues to be released as v0.3.1.
This commit is contained in:
parent
d2f02266ae
commit
c182f5fa5a
4 changed files with 26 additions and 6 deletions
|
@ -8,7 +8,7 @@ from .post import (PostDirective, PostListDirective, UpdateDirective,
|
|||
UpdateNode, process_posts, process_postlist, purge_posts,
|
||||
generate_archive_pages)
|
||||
|
||||
__version__ = '0.3'
|
||||
__version__ = '0.3.1'
|
||||
|
||||
def anchor(post):
|
||||
|
||||
|
|
|
@ -401,7 +401,8 @@ def generate_archive_pages(app):
|
|||
'catalog': catalog,
|
||||
'summary': True,
|
||||
'atom_feed': atom_feed,
|
||||
'feed_path': blog.blog_path
|
||||
'feed_path': blog.blog_path,
|
||||
'archive_feed': False,
|
||||
}
|
||||
yield (catalog.docname, context, 'archive.html')
|
||||
|
||||
|
@ -417,7 +418,8 @@ def generate_archive_pages(app):
|
|||
'catalog': [collection],
|
||||
'summary': True,
|
||||
'atom_feed': atom_feed,
|
||||
'feed_path': collection.path
|
||||
'feed_path': collection.path if blog.blog_feed_archives else blog.blog_path,
|
||||
'archive_feed': atom_feed and blog.blog_feed_archives
|
||||
}
|
||||
yield (collection.docname, context, 'archive.html')
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
<div class="section">
|
||||
|
||||
<h1>
|
||||
{% if atom_feed and fa %}
|
||||
{% if archive_feed and fa %}
|
||||
<a href="{{ pathto(archive.path, 1) }}/atom.xml"><i class="fa fa-rss fa-rotate-270"></i></a>{% endif %}
|
||||
{{ header }}
|
||||
{% if archive.href %}
|
||||
|
@ -44,7 +44,6 @@
|
|||
{% endif %}
|
||||
</li>
|
||||
{% include "postcard2.html" %}</ul>
|
||||
|
||||
{{ post.to_html(archive.docname) }}
|
||||
<p><a href="{{ pathto(post.docname) }}">{{ _("Read more ...") }}</a></p>
|
||||
<hr>
|
||||
|
|
|
@ -18,4 +18,23 @@ improvements:
|
|||
* You can list language archives on your website by adding
|
||||
``languages.html`` to :confval:`html_sidebars` configuration option.
|
||||
|
||||
* :rst:dir:`postlist` directive takes options to filter posts.
|
||||
* :rst:dir:`postlist` directive takes options to filter posts.
|
||||
|
||||
|
||||
ABlog v0.3.1 released
|
||||
---------------------
|
||||
|
||||
.. post:: Sep 24, 2014
|
||||
:author: Ahmet
|
||||
:category: Release
|
||||
:location: SF
|
||||
|
||||
ABlog v0.3.1 is a minor release to fix two issues in templates:
|
||||
|
||||
* Links to collection (archive) feeds is displayed only on collection page
|
||||
(e.g. :ref:`category-manual`), not on a catalog page that lists posts
|
||||
for multiple collections (e.g. :ref:`blog-categories`).
|
||||
|
||||
* Links to collection feeds is displayed only when they are generated
|
||||
(see :confval:`blog_feed_archives`). Previously, links would be generated
|
||||
to feeds that did not exist.
|
||||
|
|
Loading…
Add table
Reference in a new issue