Parcourir la source

Print URLs with default port used by Roll

master
David Larlet il y a 4 ans
Parent
révision
ebffc77b12
Aucune clé connue n'a été trouvée dans la base pour cette signature
1 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 4
    4
      site.py

+ 4
- 4
site.py Voir le fichier

@@ -178,7 +178,7 @@ def stream():
published = [note for note in unpublished if not note.is_draft]
for previous, note, next_ in neighborhood(unpublished, last=notes_2018):
if note.is_draft:
print(f"Soon: http://larlet.test:8001{note.url} ({note.title})")
print(f"Soon: http://larlet.test:3579{note.url} ({note.title})")
# Detect if there is code for syntax highlighting + monospaced font.
has_code = "<code>" in note.content
# Do not link to unpublished notes.
@@ -197,7 +197,7 @@ def stream():

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


@cli
@@ -219,7 +219,7 @@ def blog():
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})")
print(f"Soon: http://larlet.test:3579{post.url} ({post.title})")
# Detect if there is code for syntax highlighting + monospaced font.
has_code = "<code>" in post.content
# Do not link to unpublished posts.
@@ -239,7 +239,7 @@ def blog():

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}/")
print(f"Done: http://larlet.test:3579/{post_base}/")


@cli

Chargement…
Annuler
Enregistrer