diff options
-rw-r--r-- | design/templates/comments/list.html | 2 | ||||
-rw-r--r-- | design/templates/details/entry.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/design/templates/comments/list.html b/design/templates/comments/list.html index f6eab48..e8057dc 100644 --- a/design/templates/comments/list.html +++ b/design/templates/comments/list.html @@ -11,7 +11,7 @@ <img class="gravatar" {% if comment.user_email = "sng@luxagraf.net" %}src="https://images.luxagraf.net/gravcache/d64f4854965b2b1c3ecafee4b2a66fac.jpg" {%else%} {%if comment.user_email|has_grav %} src="https://images.luxagraf.net/gravcache/{%gravatar_hash comment.email %}.jpg"{%else%}src="https://images.luxagraf.net/gravcache/default.jpg"{%endif%}{%endif%} alt="gravatar icon for {{comment.name}}" /> </noscript> <div class="comment--head"> - <span class="who"><b><a href="{{comment.url}}" rel="nofollow" target="_blank">{{comment.name}}</a></b></span> + <span class="who"><b>{%if comment.url %}<a href="{{comment.url}}" rel="nofollow" target="_blank">{{comment.name}}</a>{% else %}{{comment.name}}{%endif%}</b></span> <span class="when">{{comment.submit_date}}</span> </div> diff --git a/design/templates/details/entry.html b/design/templates/details/entry.html index 0018928..6beb37a 100644 --- a/design/templates/details/entry.html +++ b/design/templates/details/entry.html @@ -54,7 +54,7 @@ class="{%if t == 0 or t == 2 %}single{%endif%}{%if t == 1 or t == 3 %}double{%en </main> {% get_comment_count for object as comment_count %}. -{%if comment_count > 0%} +{%if comment_count > 0 %} <p class="comments--header">{{comment_count}} Comment{{ comment_count|pluralize }}</p> {% render_comment_list for object %} {%endif%} |