summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill <bill@billserver.senders.io>2022-11-05 21:00:40 -0400
committerBill <bill@billserver.senders.io>2022-11-05 21:00:40 -0400
commit3c055d4d579a0b78a9a9ebc622cec32037e958ac (patch)
tree87f9c9bc17e82590496c04f6fbfbb5afa4813f5f
parentda1be79522f7950bbe449f7c23c0f158a68bbdf4 (diff)
Add external props to compiled MD files
Comes with some minor changes to the wishlist page
-rwxr-xr-xcompile-md.sh3
-rw-r--r--templates/page-header.html7
-rw-r--r--tidy.conf1
-rw-r--r--www/wishlist.html108
4 files changed, 81 insertions, 38 deletions
diff --git a/compile-md.sh b/compile-md.sh
index c02e692..547408b 100755
--- a/compile-md.sh
+++ b/compile-md.sh
@@ -35,4 +35,7 @@ else
cat templates/page-footer.html >> $out
fi
+# update <a> tags that are external vs internal - assumes all internal links us relative routes
+sed -E -i "s/(<a)(.+href=\"http.+\".+>)/\1 rel=\"external noopener noreferrer\" target=\"_blank\" \2/g" $out
+
./tidy.sh $out
diff --git a/templates/page-header.html b/templates/page-header.html
index a759b70..f2518cf 100644
--- a/templates/page-header.html
+++ b/templates/page-header.html
@@ -11,8 +11,11 @@
<div id='header'>
<a class='title' href='/'>senders.io</a>
<nav>
- <a href="/resume">Resume</a> <a href="/blog">Blog</a> <a href=
- "https://github.com/s3nd3r5">Github</a>
+ <a href="/resume">Resume</a>
+ <a href="/blog">Blog</a>
+ <a rel="noopener noreferrer external"
+ target="_blank"
+ href="https://github.com/s3nd3r5">Github</a>
</nav>
</div>
<div id="body" class="PAGE_CLASS">
diff --git a/tidy.conf b/tidy.conf
index 698d55f..e24e370 100644
--- a/tidy.conf
+++ b/tidy.conf
@@ -1,5 +1,6 @@
indent: auto
indent-spaces: 2
+indent-attributes: yes
wrap: 80
markup: yes
quote-marks: yes
diff --git a/www/wishlist.html b/www/wishlist.html
index 0541046..cb6fb6a 100644
--- a/www/wishlist.html
+++ b/www/wishlist.html
@@ -2,30 +2,42 @@
<html lang="en">
<head>
<meta charset="utf-8">
- <meta name="generator" content="HTML Tidy for HTML5 for Linux version 5.6.0">
+ <meta name="generator"
+ content="HTML Tidy for HTML5 for Linux version 5.6.0">
<title>senders.io - Wishlist</title>
- <link rel='stylesheet' type='text/css' href='/index.css'>
- <meta name="viewport" content="width=device-width, initial-scale=1">
+ <link rel='stylesheet'
+ type='text/css'
+ href='/index.css'>
+ <meta name="viewport"
+ content="width=device-width, initial-scale=1">
</head>
<body>
<div id='header'>
- <a class='title' href='/'>senders.io</a>
+ <a class='title'
+ href='/'>senders.io</a>
<nav>
- <a href="/resume">Resume</a> <a href="/blog">Blog</a> <a href=
- "https://github.com/s3nd3r5">Github</a>
+ <a href="/resume">Resume</a> <a href="/blog">Blog</a> <a rel=
+ "noopener noreferrer external"
+ target="_blank"
+ href="https://github.com/s3nd3r5">Github</a>
</nav>
</div>
- <div id="body" class="wishlist">
+ <div id="body"
+ class="wishlist">
<h1>Wishlist</h1>
<p>In general: Records, Gunpla, Warhammer are always welcome and likely to
be most of what the following wishlist will contain.</p>
<h2>Wishlist X-mas 2022</h2>
<h3>Records</h3>
- <p>Please <a href="https://www.discogs.com/user/senders/collection">check
- my discogs collection</a> to verify what I own or not!</p>
- <p>And you <a href="https://www.discogs.com/wantlist?user=senders">check my
- discogs wantlist</a> to see some things I have my eyes on - but it is very
- much a small subset.</p>
+ <p>Please <a rel="external noopener noreferrer"
+ target="_blank"
+ href="https://www.discogs.com/user/senders/collection">check my discogs
+ collection</a> to verify what I own or not!</p>
+ <p>And you <a rel="external noopener noreferrer"
+ target="_blank"
+ href="https://www.discogs.com/wantlist?user=senders">check my discogs
+ wantlist</a> to see some things I have my eyes on - but it is very much
+ a small subset.</p>
<table>
<thead>
<tr>
@@ -40,8 +52,10 @@
<td>Black Sabbath</td>
<td>Black Sabbath</td>
<td style="text-align:center;">
- <a href=
- "https://www.discogs.com/artist/144998-Black-Sabbath">Discogs</a>
+ <a rel="external noopener noreferrer"
+ target="_blank"
+ href=
+ "https://www.discogs.com/artist/144998-Black-Sabbath">Discogs</a>
</td>
<td></td>
</tr>
@@ -55,8 +69,10 @@
<td>Iron Maiden</td>
<td>Iron Maiden</td>
<td style="text-align:center;">
- <a href=
- "https://www.discogs.com/artist/251595-Iron-Maiden">Discogs</a>
+ <a rel="external noopener noreferrer"
+ target="_blank"
+ href=
+ "https://www.discogs.com/artist/251595-Iron-Maiden">Discogs</a>
</td>
<td></td>
</tr>
@@ -94,8 +110,10 @@
<td>Jimi Hendrix</td>
<td>Are You Experinced</td>
<td style="text-align:center;">
- <a href=
- "https://www.discogs.com/artist/110593-Jimi-Hendrix">Discogs</a>
+ <a rel="external noopener noreferrer"
+ target="_blank"
+ href=
+ "https://www.discogs.com/artist/110593-Jimi-Hendrix">Discogs</a>
</td>
<td></td>
</tr>
@@ -103,8 +121,10 @@
<td>KANGA</td>
<td>KANGA (CD)</td>
<td style="text-align:center;">
- <a href=
- "https://www.discogs.com/release/9368901-Kanga-Kanga">Discogs</a>
+ <a rel="external noopener noreferrer"
+ target="_blank"
+ href=
+ "https://www.discogs.com/release/9368901-Kanga-Kanga">Discogs</a>
</td>
<td style="text-align:center;"></td>
</tr>
@@ -112,8 +132,10 @@
<td>KANGA</td>
<td>Eternal Daughter (CD)</td>
<td style="text-align:center;">
- <a href=
- "https://kanga.bandcamp.com/album/eternal-daughter">Bandcamp</a>
+ <a rel="external noopener noreferrer"
+ target="_blank"
+ href=
+ "https://kanga.bandcamp.com/album/eternal-daughter">Bandcamp</a>
</td>
<td style="text-align:center;">πŸ’–</td>
</tr>
@@ -121,8 +143,10 @@
<td>KANGA</td>
<td>You and I Will Never Die (CD)</td>
<td style="text-align:center;">
- <a href=
- "https://kanga.bandcamp.com/album/you-and-i-will-never-die">Bandcamp</a>
+ <a rel="external noopener noreferrer"
+ target="_blank"
+ href=
+ "https://kanga.bandcamp.com/album/you-and-i-will-never-die">Bandcamp</a>
</td>
<td style="text-align:center;">πŸ’–</td>
</tr>
@@ -130,15 +154,17 @@
<td>Khemmis</td>
<td>Absolution</td>
<td style="text-align:center;">
- <a href="https://www.20buckspin.com/collections/khemmis">LP Merch
- Site</a>, <a href=
- "https://www.discogs.com/artist/4497438-Khemmis">Discogs</a>
+ <a rel="external noopener noreferrer"
+ target="_blank"
+ href="https://www.20buckspin.com/collections/khemmis">LP Merch
+ Site</a>, <a href=
+ "https://www.discogs.com/artist/4497438-Khemmis">Discogs</a>
</td>
<td style="text-align:center;">πŸ’–</td>
</tr>
<tr>
<td>Khemmis</td>
- <td>Hunted</td>
+ <td>Haunted</td>
<td style="text-align:center;">^</td>
<td style="text-align:center;">πŸ’–</td>
</tr>
@@ -152,8 +178,10 @@
<td>Raised by Swans</td>
<td>Codes And Secret Longing (CD)</td>
<td style="text-align:center;">
- <a href=
- "https://www.discogs.com/release/1173259-Raised-By-Swans-Codes-And-Secret-Longing">
+ <a rel="external noopener noreferrer"
+ target="_blank"
+ href=
+ "https://www.discogs.com/release/1173259-Raised-By-Swans-Codes-And-Secret-Longing">
Discogs</a>
</td>
<td style="text-align:center;"></td>
@@ -162,8 +190,10 @@
<td>Raised By Swans</td>
<td>Γ–xnadalur (CD)</td>
<td style="text-align:center;">
- <a href=
- "https://raisedbyswans6.bandcamp.com/album/xnadalur">Bandcamp</a>
+ <a rel="external noopener noreferrer"
+ target="_blank"
+ href=
+ "https://raisedbyswans6.bandcamp.com/album/xnadalur">Bandcamp</a>
</td>
<td style="text-align:center;">πŸ’–</td>
</tr>
@@ -192,10 +222,16 @@
or not. Its mostly purists/nerds who care.</p>
<h3>Else</h3>
<p>If you are sick of getting me records for gifts - I do need something to
- hold some overflow for my records like <a href=
- "https://www.etsy.com/market/record_crate">found here on etsy</a></p>
- <p>Interesting Fountain Pen ink shades: <a href=
- "https://www.jetpens.com/Fountain-Pen-Inks/ct/3250">Jetpens Store</a></p>
+ hold some overflow for my records like <a rel=
+ "external noopener noreferrer"
+ target="_blank"
+ href="https://www.etsy.com/market/record_crate">found here on
+ etsy</a></p>
+ <p>Interesting Fountain Pen ink shades: <a rel=
+ "external noopener noreferrer"
+ target="_blank"
+ href="https://www.jetpens.com/Fountain-Pen-Inks/ct/3250">Jetpens
+ Store</a></p>
</div>
</body>
</html>