mirror of
https://github.com/edg-l/edgarluque.com.git
synced 2024-11-09 09:38:23 +00:00
add categories
This commit is contained in:
parent
33c87b02d7
commit
a49baab926
|
@ -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
|
||||
|
|
|
@ -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).
|
||||
|
|
|
@ -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?
|
||||
|
|
|
@ -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).
|
||||
|
|
|
@ -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?
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
}
|
|
@ -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
|
||||
|
|
14
templates/taxonomy_list.html
Normal file
14
templates/taxonomy_list.html
Normal 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 %}
|
16
templates/taxonomy_single.html
Normal file
16
templates/taxonomy_single.html
Normal 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 %}
|
Loading…
Reference in a new issue