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 43514aa commit 158cd32
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 38 deletions.
16 changes: 8 additions & 8 deletions build/site/blog/Temp blog.html → build/blog/Temp blog.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="../static/style.css" />
<link rel="stylesheet" href="../static/default.css" />
<link rel="stylesheet" href="site/static/style.css" />
<link rel="stylesheet" href="site/static/default.css" />
<link
href="https://fonts.googleapis.com/css?family=Fira Code"
rel="stylesheet"
Expand Down Expand Up @@ -42,12 +42,12 @@
<header>
<!-- <a href="/" class="logo">Surya Narayan</a> -->
<a href="/"
><img alt="icon_image" class="logo" src="/static/icon.svg" width="30"
><img alt="icon_image" class="logo" src="site/static/icon.svg" width="30"
/></a>
<nav class="nav_links">
<ul>
<li><a href="/blog">blog</a></li>
<li><a href="/about">about</a></li>
<li><a href="site/blog">blog</a></li>
<li><a href="site/about">about</a></li>
</ul>
</nav>
</header>
Expand All @@ -73,11 +73,11 @@ <h4 id="sample-title">Sample title</h4>

<footer>
<section class="footer">
<a href="/blog/feed.xml">
<img alt="rss feed" src="/static/rss.svg" width="30" />
<a href="site/blog/feed.xml">
<img alt="rss feed" src="site/static/rss.svg" width="30" />
</a>
<a href="https://github.com/Surya-29">
<img alt="git" src="/static/github.svg" width="35" />
<img alt="git" src="site/static/github.svg" width="35" />
</a>
</section>
</footer>
Expand Down
2 changes: 1 addition & 1 deletion build/site/blog/feed.xml → build/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-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;
<feed xmlns="http://www.w3.org/2005/Atom"><id>http://127.0.0.1:5000/</id><title>Surya Narayan</title><updated>2024-04-01T11:06:33.687657+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:06:33.688672+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
16 changes: 8 additions & 8 deletions build/site/blog/index.html → build/blog/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="../static/style.css" />
<link rel="stylesheet" href="../static/default.css" />
<link rel="stylesheet" href="site/static/style.css" />
<link rel="stylesheet" href="site/static/default.css" />
<link
href="https://fonts.googleapis.com/css?family=Fira Code"
rel="stylesheet"
Expand Down Expand Up @@ -42,12 +42,12 @@
<header>
<!-- <a href="/" class="logo">Surya Narayan</a> -->
<a href="/"
><img alt="icon_image" class="logo" src="/static/icon.svg" width="30"
><img alt="icon_image" class="logo" src="site/static/icon.svg" width="30"
/></a>
<nav class="nav_links">
<ul>
<li><a href="/blog">blog</a></li>
<li><a href="/about">about</a></li>
<li><a href="site/blog">blog</a></li>
<li><a href="site/about">about</a></li>
</ul>
</nav>
</header>
Expand All @@ -65,11 +65,11 @@

<footer>
<section class="footer">
<a href="/blog/feed.xml">
<img alt="rss feed" src="/static/rss.svg" width="30" />
<a href="site/blog/feed.xml">
<img alt="rss feed" src="site/static/rss.svg" width="30" />
</a>
<a href="https://github.com/Surya-29">
<img alt="git" src="/static/github.svg" width="35" />
<img alt="git" src="site/static/github.svg" width="35" />
</a>
</section>
</footer>
Expand Down
16 changes: 8 additions & 8 deletions build/site/index.html → build/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="../static/style.css" />
<link rel="stylesheet" href="../static/default.css" />
<link rel="stylesheet" href="site/static/style.css" />
<link rel="stylesheet" href="site/static/default.css" />
<link
href="https://fonts.googleapis.com/css?family=Fira Code"
rel="stylesheet"
Expand Down Expand Up @@ -42,12 +42,12 @@
<header>
<!-- <a href="/" class="logo">Surya Narayan</a> -->
<a href="/"
><img alt="icon_image" class="logo" src="/static/icon.svg" width="30"
><img alt="icon_image" class="logo" src="site/static/icon.svg" width="30"
/></a>
<nav class="nav_links">
<ul>
<li><a href="/blog">blog</a></li>
<li><a href="/about">about</a></li>
<li><a href="site/blog">blog</a></li>
<li><a href="site/about">about</a></li>
</ul>
</nav>
</header>
Expand All @@ -65,11 +65,11 @@

<footer>
<section class="footer">
<a href="/blog/feed.xml">
<img alt="rss feed" src="/static/rss.svg" width="30" />
<a href="site/blog/feed.xml">
<img alt="rss feed" src="site/static/rss.svg" width="30" />
</a>
<a href="https://github.com/Surya-29">
<img alt="git" src="/static/github.svg" width="35" />
<img alt="git" src="site/static/github.svg" width="35" />
</a>
</section>
</footer>
Expand Down
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-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;
<feed xmlns="http://www.w3.org/2005/Atom"><id>http://127.0.0.1:5000/</id><title>Surya Narayan</title><updated>2024-04-01T11:06:33.687657+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:06:33.688672+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("/")
def home_page():
return render_template("index.html", the_title="Surya")


@app.route("/site/blog/")
@app.route("/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("/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("/blog/feed.xml")
def feed_generator():
feed_cont = feed.feed_gen(pages)
return Response(feed_cont, mimetype="text/xml")
Expand Down
16 changes: 8 additions & 8 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="../static/style.css" />
<link rel="stylesheet" href="../static/default.css" />
<link rel="stylesheet" href="site/static/style.css" />
<link rel="stylesheet" href="site/static/default.css" />
<link
href="https://fonts.googleapis.com/css?family=Fira Code"
rel="stylesheet"
Expand Down Expand Up @@ -42,23 +42,23 @@
<header>
<!-- <a href="/" class="logo">Surya Narayan</a> -->
<a href="/"
><img alt="icon_image" class="logo" src="/static/icon.svg" width="30"
><img alt="icon_image" class="logo" src="site/static/icon.svg" width="30"
/></a>
<nav class="nav_links">
<ul>
<li><a href="/blog">blog</a></li>
<li><a href="/about">about</a></li>
<li><a href="site/blog">blog</a></li>
<li><a href="site/about">about</a></li>
</ul>
</nav>
</header>
{% block body %} {% endblock %}
<footer>
<section class="footer">
<a href="/blog/feed.xml">
<img alt="rss feed" src="/static/rss.svg" width="30" />
<a href="site/blog/feed.xml">
<img alt="rss feed" src="site/static/rss.svg" width="30" />
</a>
<a href="https://github.com/Surya-29">
<img alt="git" src="/static/github.svg" width="35" />
<img alt="git" src="site/static/github.svg" width="35" />
</a>
</section>
</footer>
Expand Down

0 comments on commit 158cd32

Please sign in to comment.