reply context: use domain for url instead of feed name

This commit is contained in:
Kyle Mahan 2015-02-19 09:32:54 -08:00
parent c007c6ff7a
commit f7eaba5406
2 changed files with 7 additions and 1 deletions

View file

@ -30,7 +30,7 @@
{% if context.author_name %}
{{ context.author_name }} -
{% endif %}
{{ context.feed.name }}
{{ context.permalink | domain_for_url }}
</header>
{% if context.title %}
<h1>{{ context.title }}</h1>

View file

@ -345,6 +345,12 @@ def prettify_url(url):
return parsed.netloc
@views.app_template_filter()
def domain_for_url(url):
parsed = urllib.parse.urlparse(url)
return parsed.netloc
@views.app_template_filter()
def favicon_for_url(url):
parsed = urllib.parse.urlparse(url)