Made page gathering dynamic, added favicon, included css, worked on some content, created first bash page. Still very much in-progress but the framework is pretty much done. Needs more CSS and content.

This commit is contained in:
2022-10-08 09:19:40 -05:00
parent 8cfe6e43e2
commit 2e5ef4391a
24 changed files with 190 additions and 90 deletions

31
pages/test.sh Executable file
View File

@ -0,0 +1,31 @@
#!/bin/bash
# Move to the directory that this file is in.
cd `dirname $0`
# Create the necessary HTML components for a web page.
./helpers/body_open.php
echo -e "\t\t<h1>This is a web page written in BASH!!!</h1>"
cat << EOF
<p>
Look at all the fancy things we can do!
</p>
<h2>Current Time</h2>
<p>
We can use the date command to spit out the time!
</p>
<p>
`date`
</p>
EOF
# Create a subsection
./helpers/section_open.php
echo -e "\t\t<h2>Server Neofetch</h2>"
echo -e "\t\t<p>"
neofetch --stdout
echo -e "\t\t</p>"
./helpers/section_close.php
# Finish the web page
./helpers/body_close.php