Compare commits
10 Commits
cfe7535c32
...
dev
| Author | SHA1 | Date | |
|---|---|---|---|
| 2a4aedce5e | |||
| 0ba992352a | |||
| e79ab36292 | |||
| 20997473a4 | |||
| c601559059 | |||
| cae8acda27 | |||
| 2dcdfc745a | |||
| 18db97629f | |||
| f5251c89f9 | |||
| ab2dc22213 |
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -9,7 +9,7 @@ cd $DIR/..
|
||||
photos_all=./files/photos/all.html
|
||||
photos=./pages/photos.sh
|
||||
|
||||
# If the all script does not exist,call the generator and ignore its output.
|
||||
# If the all script does not exist, call the generator and ignore its output.
|
||||
if [[ ! -e $photos_all ]]; then
|
||||
$photos > /dev/null
|
||||
fi
|
||||
|
||||
@@ -2,6 +2,10 @@
|
||||
# 2024-01-21 Hyperling
|
||||
# Transition away from PhotoPrism. Helps to save system resources and downsize.
|
||||
|
||||
## TBD ##
|
||||
# - Have links at the top of the ALL page for jumping between years.
|
||||
## End TBD
|
||||
|
||||
## Static Variables ##
|
||||
DIR=`dirname $0`
|
||||
a="a target='_blank' rel='noopener noreferrer'"
|
||||
@@ -146,14 +150,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 +233,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>"
|
||||
|
||||
Reference in New Issue
Block a user