Explorar el Código

Print URLs with default port used by Roll

master
David Larlet hace 1 año
padre
commit
ebffc77b12
No se encontró ninguna clave conocida en la base de datos para esta firma
Se han modificado 1 ficheros con 4 adiciones y 4 borrados
  1. 4
    4
      site.py

+ 4
- 4
site.py Ver fichero

@@ -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

Cargando…
Cancelar
Guardar