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!

View file

@ -2,7 +2,8 @@
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.

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`.

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.

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.

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 %}