[fix] reverse order for dates
This commit is contained in:
parent
4935f6bddf
commit
005234ad2a
@ -103,7 +103,7 @@
|
||||
|
||||
<div class="back-to-home">
|
||||
<hr>
|
||||
<a href="../index.html">
|
||||
<a href="../">
|
||||
<div id="logo" src="./../static/img/logo.svg"/>
|
||||
HOME
|
||||
</div>
|
||||
|
@ -23,7 +23,7 @@
|
||||
<div class="galleries-line covers-1">
|
||||
<!-- comment tricks against space between inline-block
|
||||
--><div class="gallery-square">
|
||||
<a href="first_gallery/index.html">
|
||||
<a href="first_gallery">
|
||||
<div class="gallery-title">
|
||||
<h2>my first gallery</h2>
|
||||
<h3>some subtitle</h3>
|
||||
|
@ -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"))
|
||||
|
||||
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"))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user