aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-01-28 14:34:31 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-01-28 14:34:31 +0100
commitb427eb992f897d26de3bfac290b2baf2ce431f79 (patch)
treed255824dc09589d953ebee8698cd742139d0b37e /source
parentHTML5 compliant header. (diff)
downloadnewspipe-b427eb992f897d26de3bfac290b2baf2ce431f79.tar.gz
newspipe-b427eb992f897d26de3bfac290b2baf2ce431f79.tar.bz2
newspipe-b427eb992f897d26de3bfac290b2baf2ce431f79.zip
HTML5 fragment identifier.
Diffstat (limited to 'source')
-rw-r--r--source/templates/index.html11
1 files changed, 6 insertions, 5 deletions
diff --git a/source/templates/index.html b/source/templates/index.html
index 66f301e6..5bf6bc42 100644
--- a/source/templates/index.html
+++ b/source/templates/index.html
@@ -51,11 +51,12 @@ import utils
%>
<%
for feed in feeds:
- html += """<a name="%s"></a>\n""" % (feed["feed_id"],)
- html += """<h2><a href="%s" rel="noreferrer" target="_blank">%s</a>
- <a href="%s" rel="noreferrer"
- target="_blank"><img src="%s" width="28" height="28" /></a></h2>\n<br />""" % \
- (feed["site_link"], feed["feed_title"], \
+ html += """\n<h2 id="%s"><a href="%s" rel="noreferrer" target="_blank">%s</a>
+ <a href="%s" rel="noreferrer" target="_blank">
+ <img src="%s" width="28" height="28" />
+ </a>
+ </h2>\n<br />""" % \
+ (feed["feed_id"], feed["site_link"], feed["feed_title"], \
feed["feed_link"], feed["feed_image"])
# The main page display only 10 articles by feeds.
bgstack15