From 073377532e4efae66f3f36dded3c95843d52ea1c Mon Sep 17 00:00:00 2001 From: Hyperling Date: Tue, 27 May 2025 12:41:17 -0700 Subject: [PATCH] Add headers to all pages! Also update the look and feel of the `test` page. --- pages/about.php | 3 +++ pages/apps.php | 3 +++ pages/contact.php | 3 +++ pages/donate.php | 3 +++ pages/health.php | 3 +++ pages/helpers/header.php | 9 ++++++++- pages/home.php | 3 +++ pages/journey.sh | 2 +- pages/lists.php | 3 +++ pages/media.php | 3 +++ pages/photos.sh | 4 ++++ pages/resume.php | 3 +++ pages/support.php | 3 +++ pages/test.sh | 40 +++++++++++++++++++++++----------------- pages/videos.php | 3 +++ 15 files changed, 69 insertions(+), 19 deletions(-) diff --git a/pages/about.php b/pages/about.php index a626e30..0781d5a 100755 --- a/pages/about.php +++ b/pages/about.php @@ -1,5 +1,8 @@ #!/usr/bin/php diff --git a/pages/apps.php b/pages/apps.php index 97405c5..7b98f22 100755 --- a/pages/apps.php +++ b/pages/apps.php @@ -3,5 +3,8 @@ Synonym for home page. --> diff --git a/pages/contact.php b/pages/contact.php index 40d4125..a315c8e 100755 --- a/pages/contact.php +++ b/pages/contact.php @@ -1,5 +1,8 @@ #!/usr/bin/php diff --git a/pages/donate.php b/pages/donate.php index 2aabe91..7304fc8 100755 --- a/pages/donate.php +++ b/pages/donate.php @@ -3,5 +3,8 @@ Alias for the support page with a more common name. --> diff --git a/pages/health.php b/pages/health.php index 21e75c2..de0ec0d 100755 --- a/pages/health.php +++ b/pages/health.php @@ -4,6 +4,9 @@ --> diff --git a/pages/helpers/header.php b/pages/helpers/header.php index 352a717..4f2350b 100755 --- a/pages/helpers/header.php +++ b/pages/helpers/header.php @@ -1,8 +1,15 @@ #!/usr/bin/php + - Hyperling + Hyperling<?php echo($GLOBALS["HEADER_TITLE"]); ?> diff --git a/pages/home.php b/pages/home.php index 9d71f09..66631fc 100755 --- a/pages/home.php +++ b/pages/home.php @@ -3,6 +3,9 @@ Landing page, keeping it apps and development projects like old WordPress site. --> diff --git a/pages/journey.sh b/pages/journey.sh index 23e01f2..b0db2f3 100755 --- a/pages/journey.sh +++ b/pages/journey.sh @@ -4,7 +4,7 @@ cd `dirname $0` # Create the necessary HTML components for a web page. -./helpers/body_open.php +./helpers/body_open.php | sed -e 's/Hyperling/Hyperling: Journey/' #Content for this page cat << EOF diff --git a/pages/lists.php b/pages/lists.php index d8377ea..ec87496 100755 --- a/pages/lists.php +++ b/pages/lists.php @@ -3,6 +3,9 @@ Lists of items which I'd like to share such as gear and frequently used apps. --> diff --git a/pages/media.php b/pages/media.php index 74112e7..4c91a82 100755 --- a/pages/media.php +++ b/pages/media.php @@ -3,6 +3,9 @@ Page for my video links. --> diff --git a/pages/photos.sh b/pages/photos.sh index 0709a43..2924752 100755 --- a/pages/photos.sh +++ b/pages/photos.sh @@ -32,6 +32,7 @@ fi function start_main_page { # Create the necessary HTML components for a web page. $HELPER_DIR/body_open.php > $mainpage + sed -i -e 's/Hyperling/Hyperling: Photos/' $mainpage echo "" >> $mainpage # Give the page a description. @@ -89,6 +90,8 @@ function build_album_pages { page="" subpage="$PHOTOS_DIR/$album/index.html" $HELPER_DIR/body_open.php > $subpage + sed -i -e "s/Hyperling/Hyperling: $album_name/" $subpage + echo "" >> $subpage # Add a back button echo -en "\n\t\t
\n\t\t\t" >> $subpage @@ -190,6 +193,7 @@ function build_all_page { # Create/overwrite file. $HELPER_DIR/body_open.php > $allpage + sed -i -e 's/Hyperling/Hyperling: All Photos/' $allpage echo "" >> $allpage # Add header. diff --git a/pages/resume.php b/pages/resume.php index ca8de98..b385119 100755 --- a/pages/resume.php +++ b/pages/resume.php @@ -3,6 +3,9 @@ Page for my resume and work skill links. --> diff --git a/pages/support.php b/pages/support.php index edcd146..42e3c42 100755 --- a/pages/support.php +++ b/pages/support.php @@ -3,6 +3,9 @@ Page to provide ways people can support me. --> diff --git a/pages/test.sh b/pages/test.sh index 2a73aa2..5d97740 100755 --- a/pages/test.sh +++ b/pages/test.sh @@ -4,27 +4,33 @@ cd `dirname $0` # Create the necessary HTML components for a web page. -./helpers/body_open.php -echo -e "\t\t

This is a web page written in BASH!!!

" +./helpers/body_open.php | sed -e 's/Hyperling/Hyperling: Test Page!/' +echo -e "\t\t
" +echo -e "\t\t\t

This is a web page written in BASH!!!

" + cat << EOF -

- Look at all the fancy things we can do! -

-

Current Time

-

- We can use the date command to spit out the time! -

-

- `date` -

+

+ Look at all the fancy things we can do! +

+ +

Current Time

+
+

+ We can use the date command to spit out the time! +

+

+ `date` +

+
EOF # Create a subsection -echo -e "\t\t

Server Neofetch

" -echo -e "\t\t

" -#neofetch --stdout -echo "jk lol" -echo -e "\t\t

" +echo -e "\t\t\t

Server Neofetch

" +echo -en "\t\t\t

" +#neofetch --stdout | sed -e 's/\n/
/g' +echo -n "jk lol" +echo -e "

" +echo -e "\t\t
" # Finish the web page ./helpers/body_close.php diff --git a/pages/videos.php b/pages/videos.php index 160eaa5..5d1159a 100755 --- a/pages/videos.php +++ b/pages/videos.php @@ -4,5 +4,8 @@ Deprecated 2024-03-06 for /media. -->