#!/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 | sed -e 's/Hyperling/Hyperling: Test Page!/' echo -e "\t\t<div class='row'>" echo -e "\t\t\t<h1 class='col-12 title'>This is a web page written in BASH!!!</h1>" cat << EOF <p class="col-12 text"> Look at all the fancy things we can do! </p> <h2 class="col-12 header">Current Time</h2> <div class="col-12 text"> <p> We can use the date command to spit out the time! </p> <p> `date` </p> </div> EOF # Create a subsection echo -e "\t\t\t<h2 class='col-12 header'>Server Neofetch</h2>" echo -en "\t\t\t<p class='col-12 text'>" #neofetch --stdout | sed -e 's/\n/<br>/g' echo -n "jk lol" echo -e "</p>" echo -e "\t\t</div>" # Finish the web page ./helpers/body_close.php