Added dynamic pages
This commit is contained in:
1296
example/logs
1296
example/logs
File diff suppressed because it is too large
Load Diff
3
example/site/blog/blog/2022-1-31.sh
Executable file
3
example/site/blog/blog/2022-1-31.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo "<p>By the way today's date is $(date)</p>"
|
||||
@@ -2,4 +2,5 @@
|
||||
|
||||
<h3>It's not very polished but it's certainly a website</h3>
|
||||
|
||||
<a href="blog/2021-1-25.html">2021-1-25</a>
|
||||
<a href="blog/2022-1-25.html">2021-1-25</a>
|
||||
<a href="blog/2022-1-31">2021-1-31</a>
|
||||
|
||||
@@ -6,8 +6,10 @@ define timeout 2000
|
||||
set host localhost:8000
|
||||
read / site/index.html
|
||||
read /hello site/hello.html
|
||||
exec /blog/2022-1-31 site/blog/blog/2022-1-31.sh
|
||||
read /blog/.* site/blog/
|
||||
#/blog/2021-1-25.html turns into site/blog//blog/2021-1-25.html
|
||||
exec /dynamic site/build-page.sh
|
||||
set host 127.0.0.1:8000
|
||||
read / site/easteregg.html
|
||||
read /egg.png site/egg.png
|
||||
|
||||
Reference in New Issue
Block a user