changeset 87:4271918c4561

Update generatehtml.py committer: GitHub <noreply@github.com>
author Paper <37962225+mrpapersonic@users.noreply.github.com>
date Thu, 28 Jul 2022 19:53:49 -0400
parents fe7933e0bf13
children 4b8fd5492092
files generatehtml.py
diffstat 1 files changed, 19 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/generatehtml.py	Thu Jul 28 18:18:58 2022 -0400
+++ b/generatehtml.py	Thu Jul 28 19:53:49 2022 -0400
@@ -4,12 +4,12 @@
 import sys
 import html
 
-title = "Paper's blog"
+title = "Blog - Paper's website"
 
 def addtitle(out_str, title):
     # add stuff here
     # The title in question:
-    out_str += """	<div class="entry">\n		<h1>%s</h1>\n		<pre>\n""" % html.escape(title.strip())
+    out_str += """	<div class="entry">\n		<h1>%s</h1>\n		<div class="pre">\n""" % html.escape(title.strip())
     return out_str
 
 def main(argv):
@@ -21,8 +21,24 @@
     <title>%s</title>
     <meta name="viewport" content="width=device-width;initial-scale=1.0" />
     <link rel="stylesheet" type="text/css" href="blog.css" />
+    <link href="https://maxcdn.bootstrapcdn.com/bootstrap/2.3.2/css/bootstrap.min.css" rel="stylesheet" media="screen">
 </head>
 <body>
+	<div class="navbar-wrapper">
+        <div class="container-fluid" style="width: 98%%;margin-top:1%%;">
+            <div class="navbar navbar-inverse" style="box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5)">
+                <div class="navbar-inner">
+                    <a class="brand" href="#">Paper's website</a>
+                    <ul class="nav">
+                            <li><a href="../">Home</a></li>
+                            <li><a href="../music.html">Music</a></li>
+                            <li><a href="../projects.html">Projects</a></li>
+                            <li class="active"><a href="#">Blog</a></li>
+                    </ul>
+                </div>
+            </div>
+        </div>
+    </div>
 """ % (title))
     lines = file.readlines()
     for line in range(len(lines)):
@@ -31,7 +47,7 @@
             continue
         # this sucks.
         if lines[line][0:3] == "---":
-            out_str += "		</pre>\n	</div>\n"
+            out_str += "		</div>\n	</div>\n"
             continue
         out_str += """%s\n""" % html.escape(lines[line].strip())
     out_str += "</body>"