add categories

This commit is contained in:
Edgar 2021-12-24 12:02:07 +01:00
parent 33c87b02d7
commit a49baab926
No known key found for this signature in database
GPG key ID: 8731E6C0166EAA85
16 changed files with 73 additions and 2 deletions

View file

@ -15,6 +15,10 @@ compile_sass = true
# Whether to build a search index to be used later on by a JavaScript library
build_search_index = true
taxonomies = [
{ name = "categories", feed = true},
]
[markdown]
# Whether to do syntax highlighting
# Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola

View file

@ -2,6 +2,8 @@
title = "Implementing a chat command in DDraceNetwork"
description = "A chat command that shows info about our player"
date = 2020-12-04
[taxonomies]
categories = ["DDraceNetwork", "cpp"]
+++
This is the part 3 of my series of articles about coding in DDraceNetwork, you can find the first article [here](/blog/intro-to-ddnet).

View file

@ -2,6 +2,8 @@
title = "Creating precompiled headers with cmake"
description = "A brief introduction to target_precompile_headers"
date = 2020-11-12
[taxonomies]
categories = ["cmake"]
+++
## What are precompiled headers?

View file

@ -2,6 +2,8 @@
title = "Code conventions in DDraceNetwork"
description = "The code conventions enforced by DDraceNetwork."
date = 2020-11-28
[taxonomies]
categories = ["DDraceNetwork", "cpp"]
+++
This is the part 2 of my series of articles about coding in DDraceNetwork, you can find the previous one [here](/blog/intro-to-ddnet).

View file

@ -2,6 +2,8 @@
title = "An intro to the DDraceNetwork game source code"
description = "An introduction to the ddnet source code."
date = 2020-11-03
[taxonomies]
categories = ["DDraceNetwork", "cpp"]
+++
## What is DDraceNetwork?

View file

@ -2,6 +2,8 @@
title = "An intro to MiniUPNP"
description = "An intro to the MiniUPNP C library."
date = 2020-04-14
[taxonomies]
categories = ["c"]
+++
If you have a software that requires port forwarding, you may want to implement UPnP to make things easy for your end users.

View file

@ -2,6 +2,8 @@
title = "Modernize your linux workflow with Rust"
description = "Various tools and software that will modernize your workflow"
date = 2020-11-06
[taxonomies]
categories = ["rust", "tools"]
+++
## exa, a replacement for 'ls'

View file

@ -2,6 +2,8 @@
title = "The Rust dbg! macro"
description = "A short article about a quite unknown but useful macro in Rust."
date = 2021-07-25
[taxonomies]
categories = ["rust"]
+++
The `dbg!` macro is a useful macro to debug, and I think a not well known one, not to be confused with debug logs using format strings, this macro is useful when you are about to put `println` calls everywhere in your code to know if it reached a path, what value a variable has, etc.

View file

@ -2,6 +2,8 @@
title = "Rust Iterators: Fibonacci series"
description = "Implementing an iterator that generates fibonacci numbers."
date = 2020-12-01
[taxonomies]
categories = ["rust"]
+++
In this article we will implement an iterator that generates Fibonacci numbers,

View file

@ -2,6 +2,8 @@
title = "Setting Up SDL2 with CMake"
description = "How to setup and use SDL2 using the CMake build tool."
date = 2019-04-27
[taxonomies]
categories = ["cmake", "sdl2"]
+++
## Installing CMake

View file

@ -2,6 +2,8 @@
title = "What's new in Python 3.9"
description = "A list of major new features in python 3.9"
date = 2020-11-10
[taxonomies]
categories = ["python"]
+++
## Python 3.9

View file

@ -2,6 +2,8 @@
title = "Wrapping errors in Rust"
description = "Wrap internal and external errors with your own error type."
date = 2021-01-24
[taxonomies]
categories = ["rust"]
+++
While I was developing a rust crate ([paypal-rs](https://github.com/edg-l/paypal-rs)) I noticed my error handling was pretty bad.

View file

@ -150,6 +150,17 @@ ul.posts {
margin: 0;
}
ul.categories {
columns: 4;
@media screen and (max-width: 600px) {
columns: 2;
}
}
a.title {
text-decoration: none;
}
.brand-title {
font-size: 1.4rem;
text-transform: uppercase;
@ -161,3 +172,7 @@ ul.posts {
.blog-date {
text-align: right;
}
.capitalize {
text-transform: capitalize;
}

View file

@ -27,9 +27,9 @@
<body>
<header class="container">
<p class="brand-title">Edgar Luque's Website</p>
<a href="/" class="title"><p class="brand-title">Edgar Luque's Website</p></a>
<ul class="nav">
<li><a href="/">Blog</a></li>
<li><a href="/categories">Categories</a></li>
<li>
<a href="/projects" title="Projects I created/contributed"
>Projects</a

View file

@ -0,0 +1,14 @@
{% extends "base.html" %} {% block content %}
<h1 class="capitalize">{{ taxonomy.name }}</h1>
<ul class="categories">
{% for term in terms %}
<li>
<a href="{{ term.permalink }}" title="{{ term.name }}" class="capitalize"
>{{ term.name }}</a
>
</li>
{% endfor %}
</ul>
{% endblock content %}

View file

@ -0,0 +1,16 @@
{% extends "base.html" %} {% block content %}
<h1 class="capitalize">{{ term.name }} articles</h1>
<ul class="posts">
{% for page in term.pages %}
<li>
<span><time datetime="{{ page.date }}">{{ page.date }}</time>: </span>
<a href="{{ page.permalink }}" title="{{ page.description }}"
>{{ page.title }}</a
>
</li>
{% endfor %}
</ul>
{% endblock content %}