瀏覽代碼

Pass note list for rendering the blog index page

master
David Larlet 4 年之前
父節點
當前提交
13aa32a402
沒有發現已知的金鑰在資料庫的簽署中
共有 2 個檔案被更改,包括 1 行新增3 行删除
  1. 0
    1
      david/blog/index.html
  2. 1
    2
      site.py

+ 0
- 1
david/blog/index.html 查看文件

@@ -1180,7 +1180,6 @@ footer {
</ul>
</article>
</article>
</section>



+ 1
- 2
site.py 查看文件

@@ -15,7 +15,6 @@ from time import perf_counter
import markdown
from jinja2 import Environment as Env
from jinja2 import FileSystemLoader

from minicli import cli, run, wrap

# Useful for dates rendering within Jinja2.
@@ -230,7 +229,7 @@ def blog():
page_article
)

page_archive = template_archives.render(posts=published)
page_archive = template_archives.render(posts=published, note_list=note_list)
open(post_base / "index.html", "w").write(page_archive)
print(f"Done: http://larlet.test:8001/{post_base}/")


Loading…
取消
儲存