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:
31
pages/test.sh
Executable file
31
pages/test.sh
Executable 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
|
Reference in New Issue
Block a user