Pārlūkot izejas kodu

Do not generate anymore old blog posts

master
David Larlet pirms 1 gada
vecāks
revīzija
0dbd22c5dc
Šim parakstam datu bāzē netika atrasta zināma atslēga
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2
    0
      site.py

+ 2
- 0
site.py Parādīt failu

@@ -216,6 +216,8 @@ def blog():
published_en = [post for post in published if post.lang == "en"]
note_list = Note.all(source=DAVID / "stream" / "2019")
for previous, post, next_ in neighborhood(unpublished, last=posts_2012):
if post.date.year < 2018:
continue # Speed up + do not overwrite old comments.
if post.is_draft:
print(f"Soon: http://larlet.test:8001{post.url} ({post.title})")
# Detect if there is code for syntax highlighting + monospaced font.

Notiek ielāde…
Atcelt
Saglabāt