gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-blog] branch master updated: teaser to text


From: gnunet
Subject: [GNUnet-SVN] [taler-blog] branch master updated: teaser to text
Date: Fri, 19 Jan 2018 05:22:43 +0100

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository blog.

The following commit(s) were added to refs/heads/master by this push:
     new b95ad65  teaser to text
b95ad65 is described below

commit b95ad6559fc584f0dfa1b4366c917f9556d0ac6d
Author: Florian Dold <address@hidden>
AuthorDate: Fri Jan 19 05:22:38 2018 +0100

    teaser to text
---
 talerblog/blog/content.py           | 2 +-
 talerblog/blog/templates/index.html | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/talerblog/blog/content.py b/talerblog/blog/content.py
index 3360517..4aeb865 100644
--- a/talerblog/blog/content.py
+++ b/talerblog/blog/content.py
@@ -65,7 +65,7 @@ def add_from_html(resource_name, teaser_paragraph=0, 
title=None):
 
     teaser = soup.find("p", attrs={"id":["teaser"]})
     if teaser is None:
-        teaser = str(paragraphs[teaser_paragraph])
+        teaser = paragraphs[teaser_paragraph].get_text()
     else:
         teaser = teaser.get_text()
     re_proc = re.compile("^/essay/[^/]+/data/[^/]+$")
diff --git a/talerblog/blog/templates/index.html 
b/talerblog/blog/templates/index.html
index 290481b..40cd7ea 100644
--- a/talerblog/blog/templates/index.html
+++ b/talerblog/blog/templates/index.html
@@ -35,9 +35,9 @@
     <div>
       {% for article in articles %}
       <div class="notice">
-      <h3 class="taler-installed-show"><a href="{{ url_for("article", 
article_name=article.slug) }}">{{article.title}}</a></h3>
+      <h3 class="taler-installed-show"><a href="{{ url_for('article', 
article_name=article.slug) }}">{{article.title}}</a></h3>
       <h3 class="taler-installed-hide">{{article.title}} <span 
style="font-size: small;">(install wallet to buy/read)</span></h3>
-      <p>{{ article.teaser|safe }} <a class="taler-installed-show" href="{{ 
url_for("article", article_name=article.slug) }}">(Read more...)</a></p>
+      <p>{{ article.teaser|safe }} <a class="taler-installed-show" href="{{ 
url_for('article', article_name=article.slug) }}">(Read more...)</a></p>
       </div>
       {% else %}
       <em>(No articles available)</em>

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]