浏览代码

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

正在加载...
取消
保存