Added permalink to random quote
This commit is contained in:
parent
05c782d196
commit
1b9b116edc
1 changed files with 1 additions and 0 deletions
|
@ -44,6 +44,7 @@ def index():
|
||||||
if len(quotes)>0:
|
if len(quotes)>0:
|
||||||
quote = random.choice(quotes)
|
quote = random.choice(quotes)
|
||||||
news = str(Markup.escape(quote.content)).replace('\n', '<br />')
|
news = str(Markup.escape(quote.content)).replace('\n', '<br />')
|
||||||
|
news += str("<a href='quote/" + str(quote) + "'>Permalink</a>")
|
||||||
|
|
||||||
return render_template(
|
return render_template(
|
||||||
"index.html",
|
"index.html",
|
||||||
|
|
Loading…
Add table
Reference in a new issue