diff options
author | Indrajith K L | 2022-09-30 18:19:17 +0530 |
---|---|---|
committer | Indrajith K L | 2022-09-30 18:19:17 +0530 |
commit | aaa2da4e22be420891a00bb1b33bdfc431db80bd (patch) | |
tree | 11ce3f8da6d0307ee3be8c41a3579a60a0c608d5 /src/tags.njk | |
parent | 0664c2c30cb90da2156e83cf18526438e2e5ff57 (diff) | |
download | indrajith-dev-aaa2da4e22be420891a00bb1b33bdfc431db80bd.tar.gz indrajith-dev-aaa2da4e22be420891a00bb1b33bdfc431db80bd.tar.bz2 indrajith-dev-aaa2da4e22be420891a00bb1b33bdfc431db80bd.zip |
Theming: IN-PROGRESS
Diffstat (limited to 'src/tags.njk')
-rw-r--r-- | src/tags.njk | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/tags.njk b/src/tags.njk new file mode 100644 index 0000000..6eff101 --- /dev/null +++ b/src/tags.njk @@ -0,0 +1,36 @@ +--- +layout: base.njk +eleventyComputed: + title: Tagged “{{ tag }}” +pagination: + data: collections + size: 1 + alias: tag + filter: + - all + - post + - posts + - tagList +permalink: /tags/{{tag}}/ +--- + +<h1>Tagged “{{ tag }}”</h1> + +<ol> +{% set postslist = collections[ tag ] %} + + + + +<ol reversed class="postlist" style="counter-reset: start-from {{ (postslistCounter or postslist.length) + 1 }}"> +{% for post in postslist | reverse %} + <li class="postlist-item{% if post.url == url %} postlist-item-active{% endif %}"> + <a href="{{ post.url | url }}" class="postlist-link">{% if post.data.title %}{{ post.data.title }}{% else %}<code>{{ post.url }}</code>{% endif %}</a> + + {% for tag in post.data.tags | filterTagList %} + {% set tagUrl %}/tags/{{ tag | slugify }}/{% endset %} + <a href="{{ tagUrl | url }}" class="post-tag">{{ tag }}</a> + {% endfor %} + </li> +{% endfor %} +</ol>
\ No newline at end of file |