reply context: use domain for url instead of feed name
This commit is contained in:
parent
c007c6ff7a
commit
f7eaba5406
2 changed files with 7 additions and 1 deletions
|
@ -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>
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue