def share(): values = request.values postid = values.get("postid") if postid: url = url_for("post", postid=postid, _external=True) else: url = url_for("index", _external=True) title = values.get("title","").strip().replace("\n", " ") site = app.config["SiteTitle"].strip().replace("\n", " ") summary = values.get("summary", "").strip().replace("\n", " ") return flask_render_template("share.html", site=site, url=url, title=title, summary=summary)
def share(): values = request.values postid = values.get("postid") if postid: url = url_for("post", postid=postid, _external=True) else: url = url_for("index", _external=True) title = values.get("title", "").strip().replace("\n", " ") site = app.config["SiteTitle"].strip().replace("\n", " ") summary = values.get("summary", "").strip().replace("\n", " ") return flask_render_template("share.html", site=site, url=url, title=title, summary=summary)
def sitemap(): return Response(flask_render_template("sitemap.xml", sitemap=get_sitemap()), mimetype='text/xml')