[gimp-web/testing] Modify index.html template to show news/author list
- From: Pat David <patdavid src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp-web/testing] Modify index.html template to show news/author list
- Date: Wed, 25 May 2016 19:59:39 +0000 (UTC)
commit 73f06d3a2ecf936687999fc289cd6f304419ab3f
Author: Pat David <patdavid gmail com>
Date: Wed May 25 14:57:34 2016 -0500
Modify index.html template to show news/author list
index.html is the base template for indexing articles (news)
authors.html extends index.html with some blocks. I updated
the index.html blocks to correctly replace the page title with
the author name if it's being extended by authors.html (and to
keep saying "Recent News" if it's not).
themes/newgimp/templates/index.html | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/themes/newgimp/templates/index.html b/themes/newgimp/templates/index.html
index 76f35cc..0160ffe 100644
--- a/themes/newgimp/templates/index.html
+++ b/themes/newgimp/templates/index.html
@@ -120,16 +120,20 @@
<div class="container title">
<div class="row clearfix">
<div class="column full">
+ {% block content_title %}
<h1>Recent News</h1>
<div style='font-size: 0.85rem;'><a href='/feeds/atom.xml'>Feed <i class='fa
fa-rss'></i></a></div>
+ {% endblock %}
</div>
</div>
</div>
<section id="articles">
+ {#
{% block content_title %}
- {# <h2>Recent News</h2> #}
+ <h2>Recent News</h2>
{% endblock %}
+ #}
<div class="container">
{% for article in articles_page.object_list %}
@@ -145,13 +149,13 @@
<div class='post-info'>
<abbr class="published" title="{{ article.date.isoformat() }}"> {{
article.locale_date }} </abbr>
- {# Suppressing the author info - they're all Wilber for now!
- <address class="vcard author">By
+ {# Suppressing the author info - they're all Wilber for now! #}
+ <address class="vcard author">by
{% for author in article.authors %}
<a class="url fn" href="/{{ author.url }}">{{ author }}</a>
{% endfor %}
</address>
- #}
+ {# #}
</div>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]