Remove unwanted plugins and move all posts back into a single directory.
This commit is contained in:
parent
c7a2e5f57c
commit
5d6a616f45
|
@ -1,19 +0,0 @@
|
|||
---
|
||||
layout: default
|
||||
---
|
||||
<article class="post">
|
||||
{% include category_menu_top.html %}
|
||||
|
||||
<header class="post-header">
|
||||
<h1 class="post-title">{{ page.title }}</h1>
|
||||
</header>
|
||||
|
||||
<div class="post-content">
|
||||
<div class="category-description">
|
||||
{{ page.description }}
|
||||
<hr style="width: 20%; margin-top: 1em; margin-left: 40%; margin-right: 40%; text-align: center"/>
|
||||
</div>
|
||||
{% include post_list.html categories=page.category limit=1000000 %}
|
||||
</div>
|
||||
|
||||
</article>
|
|
@ -1,37 +0,0 @@
|
|||
class CategoryPage < Jekyll::Page
|
||||
def initialize(site, base, category)
|
||||
@site = site
|
||||
@base = base
|
||||
@dir = category
|
||||
@name = 'index.html'
|
||||
|
||||
self.process(@name)
|
||||
self.read_yaml(File.join(base, '_layouts'), 'category_index.html')
|
||||
self.data['category'] = category
|
||||
|
||||
config = site.config['category_metadata'][category]
|
||||
|
||||
if config.nil?
|
||||
self.data['title'] = category.capitalize
|
||||
self.data['description'] = ''
|
||||
else
|
||||
self.data['title'] = config['title']
|
||||
self.data['description'] = config['description']
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
class CategoryPageGenerator < Jekyll::Generator
|
||||
safe true
|
||||
|
||||
def generate(site)
|
||||
if !site.layouts.key? 'category_index'
|
||||
return
|
||||
end
|
||||
|
||||
site.config['category_metadata'].each_key do |category|
|
||||
site.pages << CategoryPage.new(site, site.source, category)
|
||||
end
|
||||
end
|
||||
|
||||
end
|
|
@ -1,26 +0,0 @@
|
|||
# Adds metadata to the post object for linking to the source page.
|
||||
# Also adds metadata linking to the gpg signature file, if it exists.
|
||||
Jekyll::Hooks.register :posts, :pre_render do |post, payload|
|
||||
if post.path =~ /\.md$/
|
||||
post.data['md_file'] = "/#{post.data['category']}/#{post.basename}"
|
||||
|
||||
sig_filename = "#{post.path}.asc"
|
||||
if File.exist?(sig_filename)
|
||||
post.data['sig_file'] = post.data['md_file'] + '.asc'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# Copy all of the source markdown files and signature files
|
||||
# directly into the destination.
|
||||
Jekyll::Hooks.register :site, :post_write do |site|
|
||||
dest = site.dest
|
||||
site.posts.docs.select{|p| p.path =~ /\.md$/}.each do |post|
|
||||
FileUtils.cp(post.path, "#{dest}/#{post.data['md_file']}")
|
||||
|
||||
sig_filename = "#{post.path}.asc"
|
||||
if File.exist?(sig_filename)
|
||||
FileUtils.cp(sig_filename, "#{dest}/#{post.data['sig_file']}")
|
||||
end
|
||||
end
|
||||
end
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
title: Yet Another Site Update
|
||||
category: meta
|
||||
active: true
|
||||
active: false
|
||||
---
|
||||
Every couple of years I move this blog to a new hosting platform, and almost as often to a new domain. But I've managed to keep all of the content with each move. So welcome to my new blog, powered by [Jekyll], and formerly powered by [Blogger], [Wordpress], (first self-run, then wordpress.com-hosted) and [Livejournal]. It can be found here at annabunch.es, and could formerly be found at stringofbits.net, and before that slashsplat.livejournal.com.
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v2
|
||||
|
||||
iQIcBAABCAAGBQJYYJO2AAoJEGgok90ESO14U68QAKTvj/pMXVOsQPU7STAUCUQ5
|
||||
zyx/9chsNWtPbdjI2rtzicp0btpTsVFqc7fqz+koBbh9fRHQa1NKUNZ8u+/fvB1v
|
||||
uNNtzbTDt0yncjP/yKHFSkKe8/siS1LlYNmyE2U+AtT3RAKYAOePjlLLULf26VKc
|
||||
LjGWRb2FvNuvedUMiVoX5jw95Y4XjuPdPDLAIRQ0ySkLZy669LkLzAOW5E6H3WiI
|
||||
ySWXZWqhz0tQiEDL1DkD1i1Y25MyfukZmCO2+m6l02hy873qrIkuCPTqOulcUBLD
|
||||
KYIUh8gD2xC/6dZq6ssTTv5MWAfbrkfj/podsIa1NsCFL/VeGm9u1aigJcAqg0sF
|
||||
TN/GES7jCUCcC6NjDdCz8pC1lggxlZEL6mrr5EIHXk8w6FBAXPnW064gHo1laDPb
|
||||
36bjJMsruiIWdvLFCdLWvLKrUey0F7ADRMyMrH5qUbbS48FSscLwTC0pg0cGFLei
|
||||
MKQx5QQiIDj/TEIxVeYChVA9A79w5wqHbkW45rB8J+dQR40IlqyewoxCvJxtsoWV
|
||||
8erk+ApmsSfJXj9Kx5RpsIXio05CMZFR7f0cU97dO4XLi5aK6Ydkzq70nJ5L4bYn
|
||||
CjYyXW6zTtnRLkaCGjk2t/3wW45RdYlwIFCY2J/z/XoXJttQ/Mx04FxzsOT1NE1k
|
||||
I15y5OzfOBF18P2UZeYu
|
||||
=ogTA
|
||||
-----END PGP SIGNATURE-----
|
|
@ -1,33 +0,0 @@
|
|||
---
|
||||
title: GPG and signing blog posts with Jekyll
|
||||
category: technology
|
||||
tags:
|
||||
- cryptography
|
||||
- blogging
|
||||
- gpg
|
||||
---
|
||||
|
||||
I've started signing all of my posts here with my GPG key. As a tl;dr, you can get the markdown source and the signature file at the bottom of each post, and you can verify that the post was signed by me by using my public [GPG key].
|
||||
|
||||
## Why sign blog posts?
|
||||
|
||||
Let's say you run an underground news website, disseminating important information. Perhaps you live in a failed democracy and you need to broadcast information to the world about the things that are happening there. You want your readers to be able to trust that the information they receive is coming from the same group, in case your website gets hacked. If you set up a GPG key when you start your blog, and always sign your posts.
|
||||
|
||||
|
||||
## Ok, but why are *you* signing *your* blog posts?
|
||||
|
||||
To be honest, it's a bit silly. No one is likely to even read my blog, let alone 'attack' me. The above scenario is pretty unlikely to happen on Anna's Dusty Old Blog. And for general proof-of-ownership, my [keybase profile] already connects this domain name to the rest of my online identity.
|
||||
|
||||
But over the next few years, I think it's depressingly likely that we will need something like a Voice of the Resistance. Maybe I'm being paranoid. I sincerely **hope** I'm being paranoid. But this is a proof of concept.
|
||||
|
||||
I can't do very many things to help fight against injustice. I'm no good in a physical fight. I'm terrible at public speaking. But I know software, and infrastructure, and I have a pretty decent handle on crypto. And I want to be ready.
|
||||
|
||||
So, if you want to see how I've set this up, this site's [source code] is available on github. It runs on [jekyll].
|
||||
|
||||
And if you aren't especially technical but you find yourself needing to set up something similar for a more 'serious' purpose, get in touch.
|
||||
|
||||
|
||||
[GPG key]: https://keybase.io/annabunches/pgp_keys.asc?fingerprint=82b1fcf343081be8e78826cf2b856f73efef6022
|
||||
[keybase profile]: https://keybase.io/annabunches
|
||||
[source code]: https://github.com/annabunches/annabunch.es
|
||||
[jekyll]: https://jekyllrb.com/
|
|
@ -1,17 +0,0 @@
|
|||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v2
|
||||
|
||||
iQIcBAABCAAGBQJYYLakAAoJEGgok90ESO14fw8P/2yZKIQAtthZap17ahPx9bB6
|
||||
2Ggx2AaFTtf8cM7ojSSetQ8rlAZe5fymxqkSOLnoH1ReAWLuZjsIKeDE835+F2fH
|
||||
HjX1UoA1NWpXQrsVUB1dWN4VRkq6seSWFOY8SWGXmfwjEC5c8qloBDVSlZALVxqO
|
||||
9wQoWqImyVmwl3hQ19c46aMPZSxOCP+c+AfnidlqUZx51Wxf8SeC1Cf4QJgaasVk
|
||||
YFBI3KWrMCSnKSrrmOu3KU7l23INExlddspYtwrlSXTrcUQzCxh/Ka4OY78hb+x8
|
||||
SmFe01KF2rEdkWdTKDcuem+ammq99/dcGrCmKgPXSpBFsYUGvQ5VIIAXbhikW0K7
|
||||
g8rJbprEnqLCE/VXbM4njkh2dB5PUsyJm39SFNULj5VaVsfi2yLggGJqCcKME2O2
|
||||
tQeNV2Har4b4Gy/dfxw8KO0YWrxXvhDkQXoXoMpmkLnoo+MmAfWxxl7/XrHWu6Q5
|
||||
sW0PKECCzEuqJkwIYw1KC76AlnsZSohSqTtgjqIq4bDL3Hpb2CY9ZbM0Ce6Lvz5g
|
||||
EuPv4Muvu/kk9oUjiQmVgHYQC42r27A1hPvMpWogj0cbZ9jeg9UkS6mZhyLDtQWV
|
||||
Rc6DtG42zBw3cjssXO6558HIxDWtnAws5amGqQJv8oB8z0TPGCd7nI1Du6B7ztqj
|
||||
GHZKFbWlgYdoDjTnpqhe
|
||||
=I5kE
|
||||
-----END PGP SIGNATURE-----
|
Loading…
Reference in New Issue
Block a user