14 Commits

10 changed files with 68 additions and 14 deletions
+12
View File
@@ -134,6 +134,11 @@ async function main() {
<strong>Web Pages (Alphabetical)</strong> <strong>Web Pages (Alphabetical)</strong>
<ul> <ul>
`; `;
let robots_txt = `
User-agent: *
Allow: /
Sitemap: https://hyperling.com/sitemap.xml
`;
console.log("...Adding Routes..."); console.log("...Adding Routes...");
let router = express.Router(); let router = express.Router();
@@ -199,6 +204,13 @@ async function main() {
res.send(sitemap_html); res.send(sitemap_html);
}); });
// Provide a robots.txt for where search engines should find things.
console.log(" * Creating router for robots.txt");
router.get('/robots.txt', function (req, res) {
console.log("robots.txt being provided to", req.socket.remoteAddress)
res.send(robots_txt);
});
// Return a resource from the files folder. // Return a resource from the files folder.
// TBD/TODO would be great to log this as "DATE: ADDRESS hit ROUTER requesting RESOURCE" // TBD/TODO would be great to log this as "DATE: ADDRESS hit ROUTER requesting RESOURCE"
console.log(" * Creating router for files"); console.log(" * Creating router for files");
+1 -1
View File
@@ -55,8 +55,8 @@
</div> </div>
<?php <?php
include "subpages/about/notice.php"; include "subpages/about/notice.php";
include "subpages/about/health.php";
include "subpages/about/stance.php"; include "subpages/about/stance.php";
include "subpages/about/health.php";
include "helpers/body_close.php"; include "helpers/body_close.php";
?> ?>
+6
View File
@@ -47,6 +47,12 @@
<ul class="indent"><li> <ul class="indent"><li>
<a href="mailto:me@hyperling.com">me@hyperling.com</a> <a href="mailto:me@hyperling.com">me@hyperling.com</a>
</li></ul> </li></ul>
<p>
Other methods such as a few messaging clients can be found here:
</p>
<ul class="indent"><li>
<a href="https://blog.hyperling.com/contact">blog.hyperling.com/contact</a>
</li></ul>
</div> </div>
</div> </div>
<?php <?php
+8 -7
View File
@@ -36,25 +36,26 @@
--> -->
<p class="menu-list"> <p class="menu-list">
Main : Main:
<a href="/">Home</a> <a href="/apps/">Apps</a>
<a href="/about/">About</a> <a href="/about/">About</a>
<a href="/contact/">Contact</a> <a href="/contact/">Contact</a>
<a href="/support/">Support</a> <a href="/support/">Support</a>
| Media : | Media:
<a href="/apps/">Apps</a>
<a href="https://git.hyperling.com/me/" <a href="https://git.hyperling.com/me/"
target="_blank" rel="noopener noreferrer">Git</a> target="_blank" rel="noopener noreferrer">Code</a>
<a href="https://works.hyperling.com/tags/books/" <a href="https://works.hyperling.com/tags/books/"
target="_blank" rel="noopener noreferrer">Books</a> target="_blank" rel="noopener noreferrer">Books</a>
<a href="https://odysee.com/@HyperVegan:2" <a href="https://works.hyperling.com/videos/"
target="_blank" rel="noopener noreferrer">Videos</a> target="_blank" rel="noopener noreferrer">Videos</a>
<a href="/photos/">Photos</a> <a href="/photos/">Photos</a>
| Blog: | Blog:
<a href="https://blog.hyperling.com/categories/articles/"
target="_blank" rel="noopener noreferrer">Articles</a>
<a href="https://recipes.hyperling.com/categories/recipes/" <a href="https://recipes.hyperling.com/categories/recipes/"
target="_blank" rel="noopener noreferrer">Recipes</a> target="_blank" rel="noopener noreferrer">Recipes</a>
<a href="https://blog.hyperling.com/categories/musings/" <a href="https://blog.hyperling.com/categories/musings/"
target="_blank" rel="noopener noreferrer">Poetry</a> target="_blank" rel="noopener noreferrer">Poetry</a>
<a href="https://blog.hyperling.com/categories/guides/" <a href="https://recipes.hyperling.com/categories/guides/"
target="_blank" rel="noopener noreferrer">Guides</a> target="_blank" rel="noopener noreferrer">Guides</a>
</div> </div>
+1 -1
View File
@@ -111,7 +111,7 @@ cat << EOF
Speaking of lifestyle, that is something else I learned from listening Speaking of lifestyle, that is something else I learned from listening
to my new role models. "Sleep Water Sugar" as Durianrider used to say. to my new role models. "Sleep Water Sugar" as Durianrider used to say.
The The
<a href="https://files.hyperling.com/media/HealthPriorities.pdf" <a href="/files/media/documents/HealthPriorities.pdf"
target="_blank">PDF</a> target="_blank">PDF</a>
on my main on my main
<a href="/about/#health" target="_blank">Health</a> <a href="/about/#health" target="_blank">Health</a>
+1 -1
View File
@@ -107,7 +107,7 @@
<div class="row"> <div class="row">
<div class="col-12 text"> <div class="col-12 text">
<p> <p>
I don't have social media, so where do my photos and videos go? I don't have social media, so where do my personal photos and videos go?
Try right here! Try right here!
</p> </p>
<ul class="indent"><li> <ul class="indent"><li>
+1 -1
View File
@@ -9,7 +9,7 @@ cd $DIR/..
photos_all=./files/photos/all.html photos_all=./files/photos/all.html
photos=./pages/photos.sh 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 if [[ ! -e $photos_all ]]; then
$photos > /dev/null $photos > /dev/null
fi fi
+4
View File
@@ -2,6 +2,10 @@
# 2024-01-21 Hyperling # 2024-01-21 Hyperling
# Transition away from PhotoPrism. Helps to save system resources and downsize. # 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 ## ## Static Variables ##
DIR=`dirname $0` DIR=`dirname $0`
a="a target='_blank' rel='noopener noreferrer'" a="a target='_blank' rel='noopener noreferrer'"
+11 -3
View File
@@ -21,21 +21,29 @@
<div class="header"> <div class="header">
<br> <br>
<a href="monero:4ATk6owoMki46CuVfyAHS57FB5deqVFudTsaifQC1cfmcaQemgPEftcjZcW9DmcyfrfdRjxHQ9m4JAVSorYTgm6h8JnT7ao">
<strong><code>XMR | Monero</code></strong> <strong><code>XMR | Monero</code></strong>
</a>
<div class="code"><code>4ATk6owoMki46CuVfyAHS57FB5deqVFudTsaifQC1cfmcaQemgPEftcjZcW9DmcyfrfdRjxHQ9m4JAVSorYTgm6h8JnT7ao</code></div> <div class="code"><code>4ATk6owoMki46CuVfyAHS57FB5deqVFudTsaifQC1cfmcaQemgPEftcjZcW9DmcyfrfdRjxHQ9m4JAVSorYTgm6h8JnT7ao</code></div>
<br> <br>
<strong><code>BTC | Bitcoin</code></strong> <a href="bitcoin:bc1qsfe8dkvry3d34kztz449gkq67wq8fu2nkgfkh0?">
<strong><code>BTC | Bitcoin</code></strong>
</a>
<div class="code"><code>bc1qsfe8dkvry3d34kztz449gkq67wq8fu2nkgfkh0</code></div> <div class="code"><code>bc1qsfe8dkvry3d34kztz449gkq67wq8fu2nkgfkh0</code></div>
<br> <br>
<strong><code>LTC | Litecoin</code></strong> <a href="litecoin:ltc1qavmpu5d6ljntxsd6jj548m4yys83zwscl0dzkx">
<strong><code>LTC | Litecoin</code></strong>
</a>
<div class="code"><code>ltc1qavmpu5d6ljntxsd6jj548m4yys83zwscl0dzkx</code></div> <div class="code"><code>ltc1qavmpu5d6ljntxsd6jj548m4yys83zwscl0dzkx</code></div>
<br> <br>
<strong><code>LBC | Odysee's Coin</code></strong> <!--
<a href=""><strong><code>LBC | Odysee's Coin</code></strong></a>
<div class="code"><code>bDWP6qZajtm9Q9EkryKTorRwKFd5eDbPJj</code></div> <div class="code"><code>bDWP6qZajtm9Q9EkryKTorRwKFd5eDbPJj</code></div>
<br> <br>
-->
</div> </div>
</div> </div>
+23
View File
@@ -0,0 +1,23 @@
#!/usr/bin/php
<!-- How people can support me in a recurring manner.. -->
<div class="row" id="donate">
<h2 class="col-12 header">Donate</h2>
</div>
<div class="row text">
<div class="col-6 center border">
<strong class="spacing">Preference 1 - BMAC or patreon?</strong>
<p>Send any type of coin.</p>
<div class="header">
</div>
</div>
<div class="col-6 center border">
<strong class="spacing">Preference 2 - The other one!</strong>
<p>Donate directly to an address.</p>
<div class="header">
</div>
</div>
</div>