[fix] reverse order for dates

This commit is contained in:
Laurent Peuch 2015-12-10 00:51:21 +01:00
parent 4935f6bddf
commit 005234ad2a
3 changed files with 3 additions and 3 deletions

View File

@ -103,7 +103,7 @@
<div class="back-to-home"> <div class="back-to-home">
<hr> <hr>
<a href="../index.html"> <a href="../">
<div id="logo" src="./../static/img/logo.svg"/> <div id="logo" src="./../static/img/logo.svg"/>
HOME HOME
</div> </div>

View File

@ -23,7 +23,7 @@
<div class="galleries-line covers-1"> <div class="galleries-line covers-1">
<!-- comment tricks against space between inline-block <!-- comment tricks against space between inline-block
--><div class="gallery-square"> --><div class="gallery-square">
<a href="first_gallery/index.html"> <a href="first_gallery">
<div class="gallery-title"> <div class="gallery-title">
<h2>my first gallery</h2> <h2>my first gallery</h2>
<h3>some subtitle</h3> <h3>some subtitle</h3>

View File

@ -98,7 +98,7 @@ def main():
open(os.path.join("build", gallery, "index.html"), "w").write(gallery_index_template.render(settings=settings, gallery=gallery_settings, helpers=TemplateFunctions(os.path.join(os.getcwd(), gallery), os.path.join(os.getcwd(), "build", gallery), has_gm=has_gm)).encode("Utf-8")) open(os.path.join("build", gallery, "index.html"), "w").write(gallery_index_template.render(settings=settings, gallery=gallery_settings, helpers=TemplateFunctions(os.path.join(os.getcwd(), gallery), os.path.join(os.getcwd(), "build", gallery), has_gm=has_gm)).encode("Utf-8"))
front_page_galleries_cover = sorted(front_page_galleries_cover, key=lambda x: x["date"]) front_page_galleries_cover = reversed(sorted(front_page_galleries_cover, key=lambda x: x["date"]))
open(os.path.join("build", "index.html"), "w").write(index_template.render(settings=settings, galleries=front_page_galleries_cover, helpers=TemplateFunctions(os.getcwd(), os.path.join(os.getcwd(), "build"), has_gm=has_gm)).encode("Utf-8")) open(os.path.join("build", "index.html"), "w").write(index_template.render(settings=settings, galleries=front_page_galleries_cover, helpers=TemplateFunctions(os.getcwd(), os.path.join(os.getcwd(), "build"), has_gm=has_gm)).encode("Utf-8"))