summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam T. Carpenter <atc@53hor.net>2020-11-30 22:52:54 -0500
committerAdam T. Carpenter <atc@53hor.net>2020-11-30 22:52:54 -0500
commite9751f6b180762d9e5a67c4b2a00155b56a708bf (patch)
tree0b55e045a8838f7b11d1c93772a28c7101cc787a
parent015c3a1d7cd0a1f68e70bf3e1254ec541ea16ae5 (diff)
download53hor-e9751f6b180762d9e5a67c4b2a00155b56a708bf.tar.xz
53hor-e9751f6b180762d9e5a67c4b2a00155b56a708bf.zip
interesting posts, finished make post, fixed index
-rw-r--r--Makefile17
-rw-r--r--about.html10
-rw-r--r--includes/stylesheet.css6
-rw-r--r--index.html7
-rw-r--r--posts/interesting/2020-11-30-titanic's-last-signals.html79
-rw-r--r--profile/adamcarpenter.html19
-rw-r--r--profile/index.html37
-rw-r--r--rss.xml1
8 files changed, 162 insertions, 14 deletions
diff --git a/Makefile b/Makefile
index 2f822c0..1571a60 100644
--- a/Makefile
+++ b/Makefile
@@ -1,27 +1,24 @@
# Written for FreeBSD make(1), or pmake. Not tested with GNU make.
TEMPLATE = templates/template.html
-RSS_TEMPLATE = templates/rss.xml
-.PHONY: all clean serve post
+.PHONY: serve post
-serve: all
+serve:
python3.7 -m http.server 3000
-clean:
- rm -f index.html
- rm -f rss.xml
-
profile/adamcarpenter.pdf: profile/adamcarpenter.html
touch profile/adamcarpenter.pdf
-post: clean
+post:
@read -p "Title: " TITLE; \
read -p "Category: " CATEGORY; \
SHORT_DATE=`date +"%Y-%m-%d"`; \
- LONG_DATE=`date -R`; \
+ LONG_DATE=`date +"%a, %d %b %Y"`; \
mkdir -p posts/$$CATEGORY; \
- FILENAME=posts/$$CATEGORY/`date +"%Y-%m-%d-"``echo $$TITLE | tr "[:upper:]" "[:lower:]" | tr "[:blank:]" -`.html; \
+ FILENAME=posts/$$CATEGORY/$$SHORT_DATE-`echo $$TITLE | tr "[:upper:]" "[:lower:]" | tr "[:blank:]" -`.html; \
cp $(TEMPLATE) $$FILENAME; \
$$EDITOR $$FILENAME; \
+ sed -i '' "s#</channel> </rss>#<item> <title>$$TITLE</title> <pubDate>$$LONG_DATE</pubDate> <link>https://www.53hor.net/$$FILENAME</link> <guid>https://www.53hor.net/$$FILENAME</guid> </item>\n</channel> </rss>#" rss.xml; \
+ sed -i '' "s#<ul id=\"index\">#<ul id=\"index\">\n<li> <a href=\"/$$FILENAME\">$$TITLE <code>$$LONG_DATE</code> </a> </li>#" index.html
diff --git a/about.html b/about.html
index 7aa009a..b2b12e8 100644
--- a/about.html
+++ b/about.html
@@ -71,6 +71,16 @@
mechanic, and caretaker, and a UNIX/FreeBSD enthusiast. I also see
myself as a loving husband and doting puppy parent.
</p>
+
+ <p>
+ This site is my home on the web. I post things I've learned, things I
+ want to share, and things I don't want to forget.
+ </p>
+
+ <p>
+ If you want to see my "professional" profile,
+ <a href="/profile">go here</a>.
+ </p>
</article>
</body>
</html>
diff --git a/includes/stylesheet.css b/includes/stylesheet.css
index 5024583..78bfc2f 100644
--- a/includes/stylesheet.css
+++ b/includes/stylesheet.css
@@ -112,3 +112,9 @@ p img {
border-left: var(--box-border);
border-right: var(--box-border);
}
+
+iframe {
+ display: block;
+ margin-left: auto;
+ margin-right: auto;
+}
diff --git a/index.html b/index.html
index 5d0de81..1c295ca 100644
--- a/index.html
+++ b/index.html
@@ -69,7 +69,12 @@
The World Wide Web pages of Adam Carpenter (53hornet)
</h1>
- <ul>
+ <ul id="index">
+ <li>
+ <a href="/posts/interesting/2020-11-30-titanic's-last-signals.html"
+ >Titanic's Last Signals <code>Mon, 30 Nov 2020</code>
+ </a>
+ </li>
<li>
<a href="/posts/unix/2020-07-26-now-this-is-a-minimal-install.html"
>Now This is a Minimal Install! <code>Sun, 26 Jul 2020</code></a
diff --git a/posts/interesting/2020-11-30-titanic's-last-signals.html b/posts/interesting/2020-11-30-titanic's-last-signals.html
new file mode 100644
index 0000000..5803ab5
--- /dev/null
+++ b/posts/interesting/2020-11-30-titanic's-last-signals.html
@@ -0,0 +1,79 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <link rel="stylesheet" href="/includes/stylesheet.css" />
+ <meta charset="utf-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
+ <meta
+ property="og:description"
+ content="The World Wide Web pages of Adam Carpenter"
+ />
+ <meta property="og:image" content="/includes/images/logo_diag.png" />
+ <meta property="og:site_name" content="53hor.net" />
+ <meta property="og:title" content="Titanic's Last Signals" />
+ <meta property="og:type" content="website" />
+ <meta property="og:url" content="https://www.53hor.net" />
+ <title>53hornet ➙ Titanic's Last Signals</title>
+ </head>
+
+ <body>
+ <nav>
+ <ul>
+ <li>
+ <a href="/">
+ <img src="/includes/icons/home-roof.svg" />
+ Home
+ </a>
+ </li>
+ <li>
+ <a href="/about.html">
+ <img src="/includes/icons/information-variant.svg" />
+ About
+ </a>
+ </li>
+ <li>
+ <a href="/software.html">
+ <img src="/includes/icons/git.svg" />
+ Software
+ </a>
+ </li>
+ <li>
+ <a href="/hosted.html">
+ <img src="/includes/icons/desktop-tower.svg" />
+ Hosted
+ </a>
+ </li>
+ <li>
+ <a type="application/rss+xml" href="/rss.xml">
+ <img src="/includes/icons/rss.svg" />
+ RSS
+ </a>
+ </li>
+ <li>
+ <a href="/contact.html">
+ <img src="/includes/icons/at.svg" />
+ Contact
+ </a>
+ </li>
+ </ul>
+ </nav>
+
+ <article>
+ <h1>Titanic's Last Signals</h1>
+ <p>
+ I forgot to post this back in April but 108 years ago, a chilling and
+ heroic conversation was had over the airwaves. This is a fascinating way
+ to hear the real conversations that took place the night the Titanic
+ went down with 1,496 souls.
+ </p>
+ <iframe
+ width="560"
+ height="315"
+ src="https://www.youtube.com/embed/FxRN2nP_9dA"
+ frameborder="0"
+ allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
+ allowfullscreen
+ ></iframe>
+ </article>
+ </body>
+</html>
diff --git a/profile/adamcarpenter.html b/profile/adamcarpenter.html
index 3b88c22..5f0f633 100644
--- a/profile/adamcarpenter.html
+++ b/profile/adamcarpenter.html
@@ -3,11 +3,24 @@
<head> </head>
<body>
<h1>Adam T. Carpenter</h1>
- www.53hor.net | atc@53hor.net
+ <table>
+ <tr>
+ <th>E-Mail</th>
+ <td>
+ <a href="mailto:atc@53hor.net">atc@53hor.net</a>
+ </td>
+ </tr>
+ <tr>
+ <th>WWW</th>
+ <td>
+ <a href="https://www.53hor.net/profile">www.53hor.net/profile</a>
+ </td>
+ </tr>
+ </table>
<h2>Summary</h2>
- <h2>Education</h2>
- <h2>Experience</h2>
+ <h2>Academics</h2>
+ <h2>Work Experience</h2>
<ul>
<li>
Technology Support Specialist at The College of William and Mary (Feb.
diff --git a/profile/index.html b/profile/index.html
index e69de29..fc10c75 100644
--- a/profile/index.html
+++ b/profile/index.html
@@ -0,0 +1,37 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <link rel="stylesheet" href="/includes/stylesheet.css" />
+ <meta charset="utf-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
+ <meta property="og:description" content="Adam T. Carpenter" />
+ <meta property="og:image" content="/includes/images/logo_diag.png" />
+ <meta property="og:site_name" content="53hor.net" />
+ <meta property="og:title" content="Adam T. Carpenter" />
+ <meta property="og:type" content="website" />
+ <meta property="og:url" content="https://www.53hor.net/profile" />
+ <title>Adam T. Carpenter</title>
+ </head>
+
+ <body>
+ <h1>Adam T. Carpenter</h1>
+
+ <p>
+ This is my professional profile.
+ <a href="/"> My personal site is here.</a>
+ </p>
+
+ <h2>CV</h2>
+
+ <p>
+ My CV is really just a long list of things I've done or am doing,
+ professionally or semi-professionally. It's available in HTML and PDF
+ formats.
+ </p>
+
+ <ul>
+ <li><a href="adamcarpenter.html">View in your browser</a></li>
+ <li><a target="_blank" href="adamcarpenter.pdf">Download PDF</a></li>
+ </ul>
+ </body>
+</html>
diff --git a/rss.xml b/rss.xml
index ee3e7ba..4dd620f 100644
--- a/rss.xml
+++ b/rss.xml
@@ -15,4 +15,5 @@
<item> <title>Offloading GoPro Footage the Easy Way</title> <pubDate>Thu, 04 Jul 2019 00:00:00 -0500</pubDate> <link>https://www.53hor.net/unix/2019-07-04-the-best-way-to-transfer-gopro-files-with-linux.html</link> <guid>https://www.53hor.net/unix/2019-07-04-the-best-way-to-transfer-gopro-files-with-linux.html</guid> </item>
<item> <title>How to Start and Drive a Hudson Hornet</title> <pubDate>Fri, 07 Jun 2019 00:00:00 -0500</pubDate> <link>https://www.53hor.net/wheels/2019-06-07-how-to-start-and-drive-a-hudson-hornet.html</link> <guid>https://www.53hor.net/wheels/2019-06-07-how-to-start-and-drive-a-hudson-hornet.html</guid> </item>
<item> <title>Why Have a Web Site in 2019?</title> <pubDate>Sat, 06 Apr 2019 00:00:00 -0500</pubDate> <link>https://www.53hor.net/computing/2019-04-06-why-have-a-website-in-2019.html</link> <guid>https://www.53hor.net/computing/2019-04-06-why-have-a-website-in-2019.html</guid> </item>
+<item> <title>Titanic's Last Signals</title> <pubDate>Mon, 30 Nov 2020</pubDate> <link>https://www.53hor.net/posts/interesting/2020-11-30-titanic's-last-signals.html</link> <guid>https://www.53hor.net/posts/interesting/2020-11-30-titanic's-last-signals.html</guid> </item>
</channel> </rss>