Skip to content

Commit 094f113

Browse files
committed
Discuss tags in docs and revise changelog
1 parent e2739f4 commit 094f113

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ All notable changes to the genja project are documented in this file. The format
66

77
#### Added
88

9-
- Tags from posts' metadata are passed to templates
9+
- Tags from the posts' metadata are passed to templates
10+
11+
#### Changed
12+
13+
- Use Python 3.13 and Ubuntu 24.04 for docs
14+
- Use uv to publish the package
1015

1116
## Genja v25.2
1217

docs/templates.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,16 @@ An example of a post template is given below. The ``{{ content }}`` variable is
8686
</body>
8787
</html>
8888

89-
The keys available in the ``meta`` dictionary are ``title``, ``date``, ``category``, ``link``, ``url``, ``iso_date``, and ``html``. The keys are defined below. Use the ``meta['title']`` or ``meta.title`` syntax to get values from the meta dictionary in the template.
89+
The keys available in the ``meta`` dictionary are ``title``, ``date``, ``category``, ``tags``, ``link``, ``url``, ``iso_date``, and ``html``. The keys are defined below. Use the ``meta['title']`` or ``meta.title`` syntax to get values from the metadata dictionary in the template.
9090

9191
title
9292
This is the title of the post.
9393
date
9494
The long date of the post such as November 12, 2024.
9595
category
9696
The category of the post. The name of the category is determined by the location of the Markdown file in the posts directory. If the post is at the top-level of the posts directory then the category is just "posts", If the post resides in a sub-directory within the posts directory, then the category is the name of the sub-directory.
97+
tags
98+
The tags of the post.
9799
link
98100
The relative link to the post's generated HTML file.
99101
url

0 commit comments

Comments
 (0)