diff --git a/layout/comment.html b/layout/comment.html index 26a489b..000f0b9 100644 --- a/layout/comment.html +++ b/layout/comment.html @@ -1,7 +1,7 @@
- {{ author }} + {{ site_start }}{{ author }}{{ site_end }} - {{ date }}

{{ content }}

diff --git a/makesite.py b/makesite.py index 0adcf5b..3145240 100755 --- a/makesite.py +++ b/makesite.py @@ -248,11 +248,19 @@ def make_posts( comments = resp.json()["data"] out_comments = [] for comment in comments: + site=comment.get("site", "") + if site: + site_start = '' + site_end = '' + else: + site_start = '' + site_end = '' out_comment = render( comment_layout, author=comment["author"], avatar=comment.get("avatar", ""), - site=comment.get("site", ""), + site_start=site_start, + site_end=site_end, date=comment["date"], content=markdown(comment["content"]), )