Browse Source

Publishing 'reasons my website is offline'

contexts-draft2
Logan McGrath 1 year ago
parent
commit
a0668e2546
  1. 9
      Makefile
  2. 11
      commands.sh
  3. 6
      site/_posts/2021-12-11-reasons-why-my-website-is-offline.md
  4. 1
      site/blog.html
  5. 7
      site/css/elements/_tag-cloud.scss

9
Makefile

@ -37,3 +37,12 @@ test:
hpack:
stack exec hpack
.PHONY: hpack
upload:
set -e; source ./commands.sh; upload
.PHONY: upload
datestamp:
set -e; source ./commands.sh; datestamp
.PHONY: datestamp

11
commands.sh

@ -106,3 +106,14 @@ test_sync () {
test () {
stack test
}
upload () {
rsync -ahp _site/* closet.oflogan.xyz:/usr/share/nginx/thisfieldwas.green/
}
datestamp () {
DATE=$(date +"%Y-%m-%dT%H:%M:%S%z")
echo "$DATE" | pbcopy
echo "Copied to clipboard: $DATE"
}

6
site/_drafts/reasons-why-my-website-is-offline.md → site/_posts/2021-12-11-reasons-why-my-website-is-offline.md

@ -2,7 +2,7 @@
title: Reasons why my website is offline
author: Logan McGrath
comments: false
date: 2021-12-06T04:54:32-08:00
date: 2021-12-11T14:43:25-0800
tags: self host, configuration management, tinfoil hat
layout: post
---
@ -11,9 +11,9 @@ My website is hosted from a 2007 HP Pavilion tower that my best friend, Vlad, a
<!--more-->
I previously complained to Vlad about how untrustworthy I felt cloud providers are regarding data privacy. He finds this computer by sheer accident, and that, by the way, he uses Arch Linux[^archbtw] so he recommends that I breathe new life into it using Arch, and to see if I can self host some of my own services.
I previously complained to Vlad about how untrustworthy I felt cloud providers are regarding data privacy. He finds this computer by sheer accident, and that he uses Arch Linux, btw[^archbtw], so he recommends that I breathe new life into it using Arch, and to see if I can self host some of my own services.
**I present my journey into self hosting: a rant, a recipe, and a retrospective.**
_I present my journey into self hosting: a rant, a recipe, and a retrospective._
## Tinfoil hat time!

1
site/blog.html

@ -27,6 +27,7 @@ changefreq: daily
<p class="tag-cloud" data-show-count>{{tagCloud}}</p>
</section>
{{-#end}}
<p><a href="{{route 'archives.html'}}">View all posts</a></p>
</section>
<article class="teaser-list">

7
site/css/elements/_tag-cloud.scss

@ -1,11 +1,11 @@
.tag-cloud {
--min-size: 0.7;
--max-size: 1.2;
--max-size: 1.6;
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
line-height: 2rem;
line-height: 2;
.tag {
--norm: calc(
@ -19,7 +19,7 @@
);
color: $text-color-hyperlink-complement;
display: block;
font-size: calc(var(--size) * 1rem);
font-size: calc(var(--size) * 1em);
padding: 0.125em 0.25em;
text-decoration: none;
position: relative;
@ -27,6 +27,5 @@
&[data-show-count] .tag::after {
content: " (" attr(data-count) ")";
font-size: 1rem;
}
}

Loading…
Cancel
Save