瀏覽代碼

Print URLs with default port used by Roll

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

+ 4
- 4
site.py 查看文件

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

Loading…
取消
儲存