[gimp-web/gimp-web-static] Fiddling with drafts index page still
- From: Pat David <patdavid src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp-web/gimp-web-static] Fiddling with drafts index page still
- Date: Thu, 19 Nov 2015 15:16:09 +0000 (UTC)
commit 3ee6838b740edb234b22a84e1555795f4d9fdf9d
Author: Pat David <patdavid gmail com>
Date: Thu Nov 19 09:16:02 2015 -0600
Fiddling with drafts index page still
content/news/draft-index.md | 3 +++
themes/newgimp/templates/draft-index.html | 13 +++++++------
2 files changed, 10 insertions(+), 6 deletions(-)
---
diff --git a/content/news/draft-index.md b/content/news/draft-index.md
index d002f9f..e876ea4 100644
--- a/content/news/draft-index.md
+++ b/content/news/draft-index.md
@@ -6,3 +6,6 @@ Status: draft
template: draft-index
This is a test index.html for the drafts folder.
+This file is only a placeholder, so we can have an index of current draft articles being written.
+
+Files with the metadata attribute set to draft (`Status: draft`) should show here.
diff --git a/themes/newgimp/templates/draft-index.html b/themes/newgimp/templates/draft-index.html
index 4a53b59..5f050bb 100644
--- a/themes/newgimp/templates/draft-index.html
+++ b/themes/newgimp/templates/draft-index.html
@@ -59,16 +59,17 @@
<div>
<h2>Current Drafts</h2>
<ul>
- {{ drafts }}
- {% for draft in drafts %}
- <li><a href='{{ draft.url }}'>{{ draft.title }}</a></li>
- {% endfor %}
+ {% for draft in drafts %}
+ <li><a href="{{ SITEURL}}/{{ draft.url }}">{{ draft.title }}</a></li>
+ <small>{{ draft.url }}</small>
+ {% endfor %}
</ul>
- End of the drafts?
</div>
+ <hr/>
<div>
+ <h2>All News Items</h2>
<p>
- Testing all_articles...<br/>
+ Testing all_articles...<br/>
<ul>
{% for article in all_articles %}
<li><a href="{{ SITEURL }}/{{ article.url }}">{{ article.url }}</a></li>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]