[gimp-web/testing] Fix page author links leading to 404 if no articles
- From: Pat David <patdavid src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp-web/testing] Fix page author links leading to 404 if no articles
- Date: Wed, 25 May 2016 20:23:52 +0000 (UTC)
commit fe6ac59d49f6413f5b2429b1aa0b0ba673ac6d1f
Author: Pat David <patdavid gmail com>
Date: Wed May 25 15:22:11 2016 -0500
Fix page author links leading to 404 if no articles
Authors with no _articles_ will not have an author page
(www.gimp.org/author/NAME.html). So links to author names
on pages (like tutorials) will sometimes 404 if the author
hasn't written an article (news) yet. This turns all *page*
author names into non-anchor links.
themes/newgimp/templates/page_author.html | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/themes/newgimp/templates/page_author.html b/themes/newgimp/templates/page_author.html
index efda0b2..e264fc5 100644
--- a/themes/newgimp/templates/page_author.html
+++ b/themes/newgimp/templates/page_author.html
@@ -46,7 +46,10 @@
<div class='post-info'>
<address class="vcard author">
by {% for author in page.authors %}
+ {# Use the below line once we've figured out the author page/article problem
<a class="url fn" href="/{{ author.url }}">{{ author }}</a>{% if not loop.last %},
{% endif %}
+ #}
+ {{ author }}{% if not loop.last %}, {% endif %}
{% endfor %}
</address>
</div>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]