Browse code

Made the blog generic; fixed demo link.

haywalk authored on 27/09/2020 13:17:51
Showing 3 changed files

... ...
@@ -1,2 +1,2 @@
1 1
 # simpleblogscript
2
-A super-simple PHP script for displaying blog posts, which are stored individually as text files. A demo version is up at https://www.spacehippie.ca/~hdw/blogdemo
2
+A super-simple PHP script for displaying blog posts, which are stored individually as text files. A demo version is up at https://www.haywalk.ca/blogdemo
... ...
@@ -2,24 +2,16 @@
2 2
 <html lang="en">
3 3
 	<head>
4 4
 		<title>Blog</title>
5
-	
6
-		<link rel="stylesheet" type="text/css" href="/sheet1.css">
7
-		<link rel="bookmark icon" type="image/png" href="/images/h2.png">
8
-	
9 5
 		<meta name="viewport" content="width=device-width, initial-scale=1.0">
10 6
 		<meta charset="utf-8">
11 7
 	</head>
12 8
 
13 9
 	<body>
14
-		<h1>My Blog</h1>
15
-	
10
+		<h1>Hayden's Blog Script</h1>
11
+
16 12
 		<a id='top'></a>
17
-	
18
-		<?php
19
-			readfile('../nav.html');
20
-		?>
21 13
 
22
-		<p>This is my blog, where I'll post website-related and personal updates. Want to be notified of new posts? Subscribe to my <a href="/blog.xml">RSS feed</a>.</p>
14
+		<p>Add a short description of your blog here.</p>
23 15
 
24 16
 		<?php
25 17
 			$posts = scandir("./posts", 1);
... ...
@@ -39,7 +31,7 @@
39 31
 		<div class="menu">
40 32
 			<a href="#top">Top of page</a>
41 33
 		</div>
42
-		
34
+
43 35
 		<a id="bottom"></a>
44 36
 	</body>
45 37
 </html>
... ...
@@ -2,34 +2,27 @@
2 2
 <html lang="en">
3 3
 	<head>
4 4
 		<title>Blog</title>
5
-	
6
-		<link rel="stylesheet" type="text/css" href="/sheet1.css">
7
-		<link rel="bookmark icon" type="image/png" href="/images/h2.png">
8
-	
9 5
 		<meta name="viewport" content="width=device-width, initial-scale=1.0">
10 6
 		<meta charset="utf-8">
11 7
 	</head>
12 8
 
13 9
 	<body>
14
-		<h1>My Blog</h1>
15
-	
10
+		<h1>Hayden's Blog Script</h1>
11
+
16 12
 		<a id='top'></a>
17
-	
18
-		<?php
19
-		    readfile('../nav.html');
20
-		?>
21 13
 
22
-                <a href="./#<?php echo substr($_GET['post'], 4);?>">Back to blog</a>
14
+	    <a href="./#<?php echo substr($_GET['post'], 4);?>">Back to blog</a>
15
+
23 16
 		<?php
24 17
 		    readfile('posts/'.$_GET['post']);
25
-                ?>
18
+        ?>
26 19
 
27 20
 		<hr>
28 21
 
29 22
 		<div class="menu">
30 23
 			<a href="#top">Top of page</a>
31 24
 		</div>
32
-		
25
+
33 26
 		<a id="bottom"></a>
34 27
 	</body>
35 28
 </html>