2012-03-03 03:41:45 -05:00
{% extends "base.html" %}
2015-01-25 05:57:59 -05:00
{% from "base.html" import article_header %}
2015-02-02 08:16:54 -05:00
{% block title %}{{ article.title }} : {{ super() }}{% endblock %}
2015-02-02 08:05:12 -05:00
{% block feedlinks %}
< link rel = "alternate" type = "application/atom+xml" title = "{{SITENAME}} - {{article.title}} - Comment Atom Feed" href = "{{ FEED_DOMAIN }}/{{ PELICAN_COMMENT_SYSTEM_FEED|format(article.slug) }}" >
{% endblock %}
2012-03-03 03:41:45 -05:00
{% block content %}
< article >
2015-01-30 07:53:10 -05:00
{{ article_header(SITEURL, SITENAME, SITESUBTITLE, article, include_history=True) }}
2015-02-03 07:08:26 -05:00
< section class = "article-content" >
{{ article.content }}
< / section >
2015-02-02 07:44:34 -05:00
< section class = "comments" >
< header >
< h1 class = "comments" > < a href = "#comments" name = "comments" > Comments< / a > < / h1 >
2015-02-13 12:16:16 -05:00
< p > Have something to add? Post a comment by sending an email to < a href = "mailto:comments@aweirdimagination.net?subject=Re:%20{{ article.title|urlencode }}" > comments@aweirdimagination.net< / a > . You may use < a href = "https://en.wikipedia.org/wiki/Markdown" > Markdown< / a > for formatting.
2015-02-02 07:44:34 -05:00
{% if article.comments %}
< h2 > {{article.comments_count}} comment{% if article.comments_count > 1 %}s{% endif %}< / h2 >
< / header >
{% for comment in article.comments recursive %}
{% if loop.depth0 == 0 %}
{% set marginLeft = 0 %}
{% else %}
{% set marginLeft = 50 %}
{% endif %}
< article id = "comment-{{comment.slug}}" class = "comment comment-depth{{loop.depth0}}" >
< header >
< img src = "{{ SITEURL }}/{{ comment.avatar }}"
alt="Avatar"
height="{{ PELICAN_COMMENT_SYSTEM_IDENTICON_SIZE }}"
width="{{ PELICAN_COMMENT_SYSTEM_IDENTICON_SIZE }}">
< a href = "{{ SITEURL }}/{{ article.url }}#comment-{{comment.slug}}" rel = "bookmark" title = "Permalink to this comment" class = "permalink" > #< / a >
< h4 > {% if comment.website %}
< a href = "{{comment.website}}" > {{ comment.author }}< / a >
{% else %}
{{ comment.author }}
{% endif %}< / h4 >
< p > Posted < abbr class = "published" title = "{{ comment.date.isoformat() }}" > {{ comment.locale_date }} {{ comment.date|strftime('%H:%M') }}< / abbr > < / p >
< / header >
{{ comment.content }}
{% if comment.replies %}
{{ loop(comment.replies) }}
{% endif %}
< / article >
{% endfor %}
{% else %}
2015-03-04 21:46:21 -05:00
< p > There are no comments yet.< p >
< / header >
2015-02-02 07:44:34 -05:00
{% endif %}
< / section >
2012-03-03 03:41:45 -05:00
< / article >
{% endblock %}