upgrade to zola 0.6 + tags

This commit is contained in:
Michael Zhang 2019-03-27 19:44:39 -05:00
parent 8c692fcebf
commit 27bba9f93b
No known key found for this signature in database
GPG Key ID: 5BAEFE5D04F0CE6C
12 changed files with 61 additions and 22 deletions

View File

@ -5,6 +5,10 @@ compile_sass = true
highlight_code = true
generate_rss = true
taxonomies = [
{ name = "tags", rss = true }
]
[extra]
nav_links = [
{ url = "/pages/about", text = "about" },

View File

@ -2,7 +2,8 @@
title = "my new life stack"
date = 2018-02-01
tags = ["life", "technology"]
[taxonomies]
tags = ["arch", "linux", "life"]
+++
This is my first post on my new blog! I used to put a CTF challenge writeup here but decided to change it up a bit. Recently, I've been changing a lot of the technology that I use day to day. Here's some of the changes that I've made!
@ -12,11 +13,11 @@ This is my first post on my new blog! I used to put a CTF challenge writeup here
I've ran regular Ubuntu on my laptop for a while, then switched to Elementary OS, which I found a lot more pleasing to use. After using Elementary OS for about 6 months, some of the software on my computer started behaving strangely, and I decided it was time for some change.
```
# michael @ arch in ~ [3:20:09]
# michael @ arch in ~ [3:20:09]
$ screenfetch
-`
-`
.o+` michael@arch
`ooo/ OS: Arch Linux
`ooo/ OS: Arch Linux
`+oooo: Kernel: x86_64 Linux 4.14.15-1-ARCH
`+oooooo: Uptime: 6h 3m
-+oooooo+: Packages: 546
@ -26,11 +27,11 @@ $ screenfetch
`/+++ooooooooooooo/` CPU: Intel Core i7-6500U @ 4x 3.1GHz [37.0°C]
./ooosssso++osssssso+` GPU: intel
.oossssso-````/ossssss+` RAM: 2963MiB / 7872MiB
-osssssso. :ssssssso.
:osssssss/ osssso+++.
/ossssssss/ +ssssooo/-
`/ossssso+/:- -:/+osssso+-
`+sso+:-` `.-/+oso:
-osssssso. :ssssssso.
:osssssss/ osssso+++.
/ossssssss/ +ssssooo/-
`/ossssso+/:- -:/+osssso+-
`+sso+:-` `.-/+oso:
`++:. `-/+/
.` `/
@ -54,4 +55,4 @@ I used to use Chromium, and ..I still do. I've tried several alternatives, like
## Personal Server
I got a droplet off DigitalOcean for hosting things that I regularly depend on. In fact, this blog (running Ghost) is hosted there now! I'm also hosting a Git server over at [https://git.mzhang.me](https://git.mzhang.me). It's running Gitea, a Go-based GitHub alternative. This doesn't mean I'm completely ditching GitHub, I just have things that I _really_ want to keep private, private.
I got a droplet off DigitalOcean for hosting things that I regularly depend on. In fact, this blog (running Ghost) is hosted there now! I'm also hosting a Git server over at [https://git.mzhang.me](https://git.mzhang.me). It's running Gitea, a Go-based GitHub alternative. This doesn't mean I'm completely ditching GitHub, I just have things that I _really_ want to keep private, private.

View File

@ -2,11 +2,12 @@
title = "cleaning up your shell"
date = 2018-02-25
tags = ["technology", "shell"]
[taxonomies]
tags = ["bash", "zsh", "oh-my-zsh"]
+++
Is your shell loading slower than it used to? Maybe you've been sticking a bit more into your `.bashrc`/`.zshrc` than you thought.
It's only been a couple weeks since I installed my computer, and already my shell has been starting to lag. Since there's not that much I've put into my `.zshrc` file, I knew who the main culprits were. Namely, oh-my-zsh's "git" plugin and the nvm (node version manager) trying to load itself on startup. I'm not exactly in a situation where I need nvm most of the time I open my shell, so getting rid of that made my shell load a lot faster. It also means that every time I want to use node or npm, I'd have to manually call nvm, but that's not as important to me as a faster shell load time, especially since I don't really touch node that much.
One trick you can use to see what scripts are being called at startup is the `-x` option (stands for xtrace) that popular shells like `bash` and `zsh` support. If you go into your shell and run `set -o xtrace`, you'll see it start to spit out some bash commands; this is the list of everything that is being run when your shell starts. You might find that some apps take a ridiculous amount of time to start up. These are some of the things you'd want to eliminate.
One trick you can use to see what scripts are being called at startup is the `-x` option (stands for xtrace) that popular shells like `bash` and `zsh` support. If you go into your shell and run `set -o xtrace`, you'll see it start to spit out some bash commands; this is the list of everything that is being run when your shell starts. You might find that some apps take a ridiculous amount of time to start up. These are some of the things you'd want to eliminate.

View File

@ -2,7 +2,8 @@
title = "fixing tmux colors"
date = 2018-04-23
tags = ["technology", "shell"]
[taxonomies]
tags = ["tmux", "terminal"]
+++
Put this in your `~/.tmux.conf`.
@ -11,4 +12,4 @@ Put this in your `~/.tmux.conf`.
set -g default-terminal "screen-256color"
```
If this isn't set properly, tmux usually assumes 16-color mode, which displays colors probably not like what you're used to.
If this isn't set properly, tmux usually assumes 16-color mode, which displays colors probably not like what you're used to.

View File

@ -2,7 +2,8 @@
title = "web apps"
date = 2018-05-28
tags = ["technology", "opinion"]
[taxonomies]
tags = ["javascript", "web", "rant"]
+++
The other day, I just turned off JavaScript from my browser. "fucking neckbeard", "you'll turn it back in 2 weeks", "living without JavaScript is like living without electricity" were some of the responses I got. And they might be right. But let's see why things are the way they are and what we can do about it.
@ -44,4 +45,4 @@ I'm helping with a project called flubber, which originated as an IRC bouncer, b
And of course, I've disabled JavaScript in my browser.
\</rant\> <small>thanks for reading!</small>
\</rant\> <small>thanks for reading!</small>

View File

@ -2,7 +2,8 @@
title = "setting up irc with weechat"
date = 2018-10-18
tags = ["technology", "irc"]
[taxonomies]
tags = ["irc", "life"]
+++
I've just recently discovered that weechat has a "relay" mode, which means it can act as a relay server to other clients (for example, my phone). If I leave an instance of weechat running on, say, my server that's always running, it can act as a bouncer and my phone can receive notifications for highlights as well.
@ -83,4 +84,4 @@ That's it! If you're also using the android app to connect, just type in your ho
[2]: https://github.com/ubergeek42/weechat-android
[3]: https://www.weechat.org/files/doc/stable/weechat_user.en.html#relay_commands
[4]: https://letsencrypt.org/
[5]: https://www.glowing-bear.org/
[5]: https://www.glowing-bear.org/

View File

@ -2,7 +2,8 @@
title = "twenty years of attacks on rsa.. with examples!"
date = 2018-10-26
tags = ["rsa", "cryptography"]
[taxonomies]
tags = ["rsa", "math", "crypto", "python"]
[extra]
toc = true

View File

@ -2,7 +2,8 @@
title = "magic forms with proc macros: ideas"
date = 2019-02-01
tags = ["rust"]
[taxonomies]
tags = ["rust", "web", "macros"]
+++
Procedural macros (proc macros for short) in Rust are incredible because they allow pre-compile source transformation. Many of the greatest abstractions in Rust take advantage of this feature. For example, you can

View File

@ -25,5 +25,5 @@
"language": "English",
"fluency": "Native speaker"
}
],
}
]
}

View File

@ -19,6 +19,7 @@
<div style="text-align: center; font-weight: 200; margin-bottom: 40px;">
<p style="margin: 0;">
<a href="/tags" class="colorlink">tags</a> &middot;
<a href="/pages" class="colorlink">all pages</a>
</p>
<p style="margin: 0;">

14
templates/tags/list.html Normal file
View File

@ -0,0 +1,14 @@
{% extends "layout.html" %}
{% block title %}
tags - {{ config.title }}
{% endblock %}
{% block content %}
<h1 style="margin: 0;">tags</h1>
<p>
{% for term in terms %}
<a href="{{ term.permalink }}" style="margin: auto 10px;">{{ term.name }}</a>
{% endfor %}
</p>
{% endblock %}

View File

@ -0,0 +1,13 @@
{% extends "layout.html" %}
{% import "macros/blog.html" as blog %}
{% block title %}
articles under {{ term.name }} - {{ config.title }}
{% endblock %}
{% block content %}
<a href="../">&laquo; back to tags</a>
<h1 style="margin: 0;">articles under <code>{{ term.name }}</code></h1>
<p></p>
{{ blog::postlisting(posts=term.pages) }}
{% endblock %}