Also list articles in order of recently edited.
This commit is contained in:
parent
66e6301c32
commit
d2d6905cd4
1 changed files with 10 additions and 0 deletions
|
@ -343,9 +343,19 @@ def write_writing_index():
|
|||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
<h2>Recently edited</h2>
|
||||
<ul>
|
||||
{% for article in articles_edited %}
|
||||
<li>
|
||||
<a href="{{article.web_path}}">{{article.date}} - {{article.title}}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</body>
|
||||
''').render(
|
||||
articles=sorted(ARTICLES.values(), key=lambda a: a.date, reverse=True),
|
||||
articles_edited=sorted(ARTICLES.values(), key=lambda a: a.edited, reverse=True)
|
||||
)
|
||||
write(writing_rootdir.with_child('index.html'), page)
|
||||
|
||||
|
|
Loading…
Reference in a new issue