aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBradley Taunt <bt@btxx.org>2024-05-30 09:02:38 -0400
committerBradley Taunt <bt@btxx.org>2024-05-30 09:02:38 -0400
commit8f28fc58d5fe68775fbe552eb172cbb4ad8614b1 (patch)
tree65c5ef1ba611db1aa9fe80d65d2fffca950238e9
parentfa6aded86998639a53aecfa7b76e0ecd800fd9f0 (diff)
Further customization and porting of older content
-rw-r--r--_config.yml3
-rw-r--r--_includes/disqus_comments.html20
-rw-r--r--_includes/feed.xml23
-rw-r--r--_includes/google-analytics.html9
-rw-r--r--_includes/head.html1
-rw-r--r--_includes/header.html9
-rw-r--r--_layouts/home.html2
-rw-r--r--_sass/minima/custom-styles.scss6
-rw-r--r--_sass/minima/initialize.scss2
-rw-r--r--atom.xml22
-rw-r--r--wiki/alpine-linux.md41
-rw-r--r--wiki/index.md (renamed from wiki.md)0
12 files changed, 99 insertions, 39 deletions
diff --git a/_config.yml b/_config.yml
index c89c2de..98f8fa6 100644
--- a/_config.yml
+++ b/_config.yml
@@ -32,6 +32,9 @@ defaults:
sass:
sass_dir: _sass
+feed:
+ path: feed.xml
+
# Exclude from processing.
# The following items will not be processed, by default.
# Any item listed under the `exclude:` key here will be automatically added to
diff --git a/_includes/disqus_comments.html b/_includes/disqus_comments.html
deleted file mode 100644
index 87e255b..0000000
--- a/_includes/disqus_comments.html
+++ /dev/null
@@ -1,20 +0,0 @@
-{%- if page.comments != false and jekyll.environment == "production" -%}
-
- <div id="disqus_thread"></div>
- <script>
- var disqus_config = function () {
- this.page.url = '{{ absolute_url }}';
- this.page.identifier = '{{ page.url | absolute_url }}';
- };
-
- (function() {
- var d = document, s = d.createElement('script');
-
- s.src = 'https://{{ site.disqus.shortname }}.disqus.com/embed.js';
-
- s.setAttribute('data-timestamp', +new Date());
- (d.head || d.body).appendChild(s);
- })();
- </script>
- <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
-{%- endif -%}
diff --git a/_includes/feed.xml b/_includes/feed.xml
new file mode 100644
index 0000000..310c90b
--- /dev/null
+++ b/_includes/feed.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<rss version="2.0"
+ xmlns:content="http://purl.org/rss/1.0/modules/content/"
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:media="http://search.yahoo.com/mrss/"
+ xmlns:atom="http://www.w3.org/2005/Atom">
+ <channel>
+ <title>{{ site.title | xml_escape }}</title>
+ <link>{{ site.url }}{{ site.baseurl }}</link>
+ <description>{{ site.description | xml_escape }}</description>
+ <atom:link href="{{ site.url }}{{ site.baseurl }}/feed.xml" rel="self" type="application/rss+xml"/>
+
+ {% for post in site.posts limit:10 %}
+ <item>
+ <title>{{ post.title | xml_escape }}</title>
+ <link>{{ site.url }}{{ post.url }}</link>
+ <guid isPermaLink="false">{{ site.url }}{{ post.url }}</guid>
+ <pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
+ <description><![CDATA[{{ post.content | xml_escape }}]]></description>
+ </item>
+ {% endfor %}
+ </channel>
+</rss> \ No newline at end of file
diff --git a/_includes/google-analytics.html b/_includes/google-analytics.html
deleted file mode 100644
index b8b4d38..0000000
--- a/_includes/google-analytics.html
+++ /dev/null
@@ -1,9 +0,0 @@
-<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
-<script>
- window['ga-disable-{{ site.google_analytics }}'] = window.doNotTrack === "1" || navigator.doNotTrack === "1" || navigator.doNotTrack === "yes" || navigator.msDoNotTrack === "1";
- window.dataLayer = window.dataLayer || [];
- function gtag(){window.dataLayer.push(arguments);}
- gtag('js', new Date());
-
- gtag('config', '{{ site.google_analytics }}');
-</script>
diff --git a/_includes/head.html b/_includes/head.html
index 82078b0..283424c 100644
--- a/_includes/head.html
+++ b/_includes/head.html
@@ -2,6 +2,7 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
+ <meta name="color-scheme" content="dark light">
<link rel="stylesheet" href="{{ '/assets/css/style.css' | relative_url }}">
<link rel="icon" href="data:,">
{%- feed_meta -%}
diff --git a/_includes/header.html b/_includes/header.html
index ed5a382..afd345f 100644
--- a/_includes/header.html
+++ b/_includes/header.html
@@ -17,14 +17,7 @@
</span>
</label>
- <div class="trigger">
- {%- for path in page_paths -%}
- {%- assign my_page = site.pages | where: "path", path | first -%}
- {%- if my_page.title -%}
- <a class="page-link" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
- {%- endif -%}
- {%- endfor -%}
- </div>
+ <div class="trigger"><a class="page-link" href="/about">About</a><a class="page-link" href="/posts">Posts</a><a class="page-link" href="/wiki">Wiki</a><a class="page-link" href="/projects">Projects</a><a class="page-link" href="/colophon">Colophon</a><a class="page-link" href="/now">Now</a><a class="page-link" href="/uses">Uses</a></div>
</nav>
{%- endif -%}
</div>
diff --git a/_layouts/home.html b/_layouts/home.html
index 34dc79b..44b51e6 100644
--- a/_layouts/home.html
+++ b/_layouts/home.html
@@ -23,7 +23,7 @@ layout: base
{%- endif -%}
<ul class="post-list">
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
- {%- for post in site.posts | limit: 5 -%}
+ {%- for post in site.posts limit:5 -%}
<li>
<span class="post-meta">{{ post.date | date: date_format }}</span>
<h3>
diff --git a/_sass/minima/custom-styles.scss b/_sass/minima/custom-styles.scss
index 0556d89..044b842 100644
--- a/_sass/minima/custom-styles.scss
+++ b/_sass/minima/custom-styles.scss
@@ -17,4 +17,10 @@
}
.footnotes {
font-size: 90%;
+}
+
+::selection,
+::-webkit-selection {
+ background: #b3d4fc !important;
+ color: #000 !important;
} \ No newline at end of file
diff --git a/_sass/minima/initialize.scss b/_sass/minima/initialize.scss
index f6aed84..8cfc101 100644
--- a/_sass/minima/initialize.scss
+++ b/_sass/minima/initialize.scss
@@ -7,7 +7,7 @@ $code-font-family: "Menlo", "Inconsolata", "Consolas", "Roboto Mono", "Ubuntu Mo
$base-font-size: 16px !default;
$base-font-weight: 400 !default;
$small-font-size: $base-font-size * 0.875 !default;
-$base-line-height: 1.33 !default;
+$base-line-height: 1.4 !default;
$spacing-unit: 30px !default;
diff --git a/atom.xml b/atom.xml
new file mode 100644
index 0000000..b50e1c7
--- /dev/null
+++ b/atom.xml
@@ -0,0 +1,22 @@
+---
+layout: none
+---
+<?xml version="1.0" encoding="utf-8"?>
+<feed xmlns="http://www.w3.org/2005/Atom">
+ <title>{{ site.title | xml_escape }}</title>
+ <link href="{{ site.url | append: site.baseurl | append: '/atom.xml' }}"/>
+ <updated>{{ site.time | date_to_xmlschema }}</updated>
+ <id>{{ site.url | append: site.baseurl | append: '/atom.xml' }}</id>
+ <author>
+ <name>{{ site.author.name }}</name>
+ </author>
+ {% for post in site.posts limit:10 %}
+ <entry>
+ <title>{{ post.title | xml_escape }}</title>
+ <link href="{{ post.url | prepend: site.baseurl | prepend: site.url }}"/>
+ <id>{{ post.id }}</id>
+ <updated>{{ post.date | date_to_xmlschema }}</updated>
+ <summary>{{ post.content | xml_escape }}</summary>
+ </entry>
+ {% endfor %}
+</feed>
diff --git a/wiki/alpine-linux.md b/wiki/alpine-linux.md
new file mode 100644
index 0000000..53d2e4e
--- /dev/null
+++ b/wiki/alpine-linux.md
@@ -0,0 +1,41 @@
+---
+layout: page
+title: Alpine Linux
+permalink: /wiki/alpine-linux
+---
+
+This page contains a helpful collection of configuration and application setups for Alpine Linux.
+
+## Run Mullvad on Alpine Linux (Wireguard)
+
+
+ # Install wireguard
+ apk add wireguard-tools
+
+
+Login into Mullvad and download the proper wireguard configuration files(s). After downloaded, place in the proper directory:
+
+
+ doas cp <MULLVAD_FILENAME>.conf /etc/wireguard/"
+
+
+Then setup an aliases for easier up/down states:
+
+
+ alias vpnup="doas wg-quick up /etc/wireguard/<MULLVAD_FILENAME>.conf"
+ alias vpndown="doas wg-quick down /etc/wireguard/<MULLVAD_FILENAME>.conf"
+
+## Alpine Linux `mini_racer` Tweaks
+
+Gem lockfile:
+
+
+ PLATFORMS
+ ruby
+ x86_64-linux-musl
+
+ mini_racer (0.6.3)
+ <remove child dependency>
+
+
+then run: `bundle update mini_racer`
diff --git a/wiki.md b/wiki/index.md
index 662cfb7..662cfb7 100644
--- a/wiki.md
+++ b/wiki/index.md