Skip to content

Commit

Permalink
latest build
Browse files Browse the repository at this point in the history
  • Loading branch information
Surya-29 committed Apr 1, 2024
1 parent 4bee648 commit 43514aa
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion build/blog/feed.xml → build/site/blog/feed.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='UTF-8'?>
<feed xmlns="http://www.w3.org/2005/Atom"><id>http://127.0.0.1:5000/</id><title>Surya Narayan</title><updated>2024-04-01T09:47:46.487438+00:00</updated><author><name>Surya</name><email>[email protected]</email></author><link href="http://127.0.0.1:5000/" rel="alternate"/><generator uri="https://lkiesow.github.io/python-feedgen" version="0.9.0">python-feedgen</generator><entry><id>Temp blog</id><title>Testing</title><updated>2024-04-01T09:47:46.487438+00:00</updated><link href="http://127.0.0.1:8000/blog/Temp blog" rel="alternate"/><summary type="html">&lt;h4 id="sample-title"&gt;Sample title&lt;/h4&gt;
<feed xmlns="http://www.w3.org/2005/Atom"><id>http://127.0.0.1:5000/</id><title>Surya Narayan</title><updated>2024-04-01T11:00:48.547545+00:00</updated><author><name>Surya</name><email>[email protected]</email></author><link href="http://127.0.0.1:5000/" rel="alternate"/><generator uri="https://lkiesow.github.io/python-feedgen" version="0.9.0">python-feedgen</generator><entry><id>Temp blog</id><title>Testing</title><updated>2024-04-01T11:00:48.547545+00:00</updated><link href="http://127.0.0.1:8000/blog/Temp blog" rel="alternate"/><summary type="html">&lt;h4 id="sample-title"&gt;Sample title&lt;/h4&gt;

&lt;blockquote&gt;
&lt;p&gt;sample text&lt;/p&gt;
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion feed.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='UTF-8'?>
<feed xmlns="http://www.w3.org/2005/Atom"><id>http://127.0.0.1:5000/</id><title>Surya Narayan</title><updated>2024-04-01T09:47:46.487438+00:00</updated><author><name>Surya</name><email>[email protected]</email></author><link href="http://127.0.0.1:5000/" rel="alternate"/><generator uri="https://lkiesow.github.io/python-feedgen" version="0.9.0">python-feedgen</generator><entry><id>Temp blog</id><title>Testing</title><updated>2024-04-01T09:47:46.487438+00:00</updated><link href="http://127.0.0.1:8000/blog/Temp blog" rel="alternate"/><summary type="html">&lt;h4 id="sample-title"&gt;Sample title&lt;/h4&gt;
<feed xmlns="http://www.w3.org/2005/Atom"><id>http://127.0.0.1:5000/</id><title>Surya Narayan</title><updated>2024-04-01T11:00:48.547545+00:00</updated><author><name>Surya</name><email>[email protected]</email></author><link href="http://127.0.0.1:5000/" rel="alternate"/><generator uri="https://lkiesow.github.io/python-feedgen" version="0.9.0">python-feedgen</generator><entry><id>Temp blog</id><title>Testing</title><updated>2024-04-01T11:00:48.547545+00:00</updated><link href="http://127.0.0.1:8000/blog/Temp blog" rel="alternate"/><summary type="html">&lt;h4 id="sample-title"&gt;Sample title&lt;/h4&gt;

&lt;blockquote&gt;
&lt;p&gt;sample text&lt;/p&gt;
Expand Down
8 changes: 4 additions & 4 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,19 +51,19 @@ def prerender_jinja(text):
posts = [page for page in list(pages)][:-1]


@app.route("site/")
@app.route("/site/")
def home_page():
return render_template("index.html", the_title="Surya")


@app.route("site/blog/")
@app.route("/site/blog/")
def blog_page():
return render_template("blog.html", pages=posts, tag="all"), {
"Content-Type": "text/html; charset=utf-8"
}


@app.route("site/blog/<path:path>.html")
@app.route("/site/blog/<path:path>.html")
def page(path):
page = pages.get_or_404(path)
return render_template("page.html", page=page), {
Expand All @@ -76,7 +76,7 @@ def page_404(e):
return render_template("404.html"), 404


@app.route("site/blog/feed.xml")
@app.route("/site/blog/feed.xml")
def feed_generator():
feed_cont = feed.feed_gen(pages)
return Response(feed_cont, mimetype="text/xml")
Expand Down

0 comments on commit 43514aa

Please sign in to comment.