Compare commits

..

7 Commits

3 changed files with 14 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
#!/usr/bin/php
<?php
$show_advisory = true;
$show_advisory = false;
if ($show_advisory) echo '
<div class="row">
<p><!-- Gap Area --></p>

View File

@@ -38,18 +38,23 @@
<p class="menu-list">
Main :
<a href="/">Home</a>
<a href="/apps/">Apps</a>
<a href="/about/">About</a>
<a href="/contact/">Contact</a>
<a href="/support/">Support</a>
| Media :
<a href="https://recipes.hyperling.com/tags/books/"
<a href="/apps/">Apps</a>
<a href="https://git.hyperling.com/me/"
target="_blank" rel="noopener noreferrer">Git</a>
<a href="https://works.hyperling.com/tags/books/"
target="_blank" rel="noopener noreferrer">Books</a>
<a href="https://odysee.com/@HyperVegan:2"
target="_blank" rel="noopener noreferrer">Videos</a>
<a href="/photos/">Photos</a>
<a href="https://recipes.hyperling.com/tags/food/"
| Blog:
<a href="https://recipes.hyperling.com/categories/recipes/"
target="_blank" rel="noopener noreferrer">Recipes</a>
<a href="https://recipes.hyperling.com/tags/poetry/"
<a href="https://blog.hyperling.com/categories/musings/"
target="_blank" rel="noopener noreferrer">Poetry</a>
<a href="https://blog.hyperling.com/categories/guides/"
target="_blank" rel="noopener noreferrer">Guides</a>
</div>

View File

@@ -146,14 +146,14 @@ function build_album_pages {
echo -en "\t\t\t\t<$a href='/$photo'>" >> $subpage
# Determine what type of media it is, and how to display it.
if [[ $photo == *".mp4" ]]; then
echo -e "\t\t\t\t\t<video width='320px' controls>" >> $subpage
echo -e "\t\t\t\t\t<video width='320px' preload='none' controls>" >> $subpage
echo -e "\t\t\t\t\t\t<source src='/$photo' type=video/mp4>" >> $subpage
echo -e "\t\t\t\t\t\tYour browser does not support videos." >> $subpage
echo -e "\t\t\t\t\t</video>" >> $subpage
elif [[ $photo == *".md" || $photo == *".txt" ]]; then
echo -e "\t\t\t\t\t<p>`cat $photo`</p>" >> $subpage
else
echo -e "\t\t\t\t\t<img src='/$photo' alt=''>" >> $subpage
echo -e "\t\t\t\t\t<img loading='lazy' alt='' src='/$photo'>" >> $subpage
fi
# Check if it needs an extra descriptive detail.
echo -en "\t\t\t\t\t<p>$filename" >> $subpage
@@ -229,11 +229,11 @@ function build_all_page {
dir_name="${dir_name//_/ }"
dir_name="${dir_name//-/ }"
media="<img src='$media_uri' alt='' style='width:100%'>"
media="<img style='width:100%' loading='lazy' alt='' src='$media_uri'>"
# Determine how to show the file.
if [[ $media_uri == *".mp4" ]]; then
media="<video controls style='width:100%'>"
media="<video style='width:100%' preload='none' controls>"
media="${media}<source src='$media_uri' type=video/mp4>"
media="${media}Your browser does not support videos."
media="${media}</video>"