Skip to content

Commit

Permalink
Fix tag collision
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlaki committed Apr 7, 2024
1 parent ed2205a commit 0d34380
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/_includes/layout/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@
</li>
{% endif %}

{% if tags %}
{% if templateTags %}
<li class="template-meta__item template-meta__item--tags">
{% for tag in tags %}
{% for tag in templateTags %}
<span class="template-tag template-tag--{{ tag | lower }}">
{{ tag }}
</span>
Expand Down
4 changes: 2 additions & 2 deletions src/_includes/layout/templates.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ <h2 class="template-card__title">
{{ template.data.description }}
</p>
<div class="template-card__meta">
{% if template.data.tags %}
{% if template.data.templateTags %}
<div class="template-card__tags">
{% for tag in template.data.tags %}
{% for tag in template.data.templateTags %}
<span class="template-tag template-tag--{{ tag | lower }}">
{{ tag }}
</span>
Expand Down
4 changes: 2 additions & 2 deletions src/_includes/partial/tags.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{% if tags %}
<div class="tags">
<p class="tags__title">Posted in</p>
<ul class="tags__list" aria-describedby="tags-desc">
<ul class="tags__list">
{% for tag in tags %}
<li>
<a href="/tag/{{ tag | slug }}/">#{{ tag }}</a>
<a href="/blog/tag/{{ tag | slug }}/">#{{ tag }}</a>
</li>
{% endfor %}
</ul>
Expand Down
4 changes: 2 additions & 2 deletions src/tags.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
title: "Tags"
layout: "layout/posts.html"
pagination:
data: "collections.posts"
data: "collections"
size: 1
reverse: true
alias: "tag"
permalink: "/tag/{{ tag | slug }}/"
permalink: "/blog/tag/{{ tag | slugify }}/"
---
2 changes: 1 addition & 1 deletion src/templates/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ license: "MIT"
version: "v1.2.0"
date: "2023-05-23"
updated: "2023-12-17"
tags: ["Eleventy", "Free"]
templateTags: ["Eleventy", "Free"]
---

<p class="lead">Welcome to the official documentation of **Spruce Docs** Elventy theme. A small template you can use to document any of your projects.</p>
Expand Down
2 changes: 1 addition & 1 deletion src/templates/root.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ license: "MIT"
version: "v1.0.3"
date: "2023-11-18"
updated: "2023-12-17"
tags: ["HTML", "Free"]
templateTags: ["HTML", "Free"]
---

<p class="lead">A straightforward administration template with standard views and many components.</p>
Expand Down

0 comments on commit 0d34380

Please sign in to comment.