Skip to content

Commit

Permalink
Snippetübersicht auf Liste umgestellt
Browse files Browse the repository at this point in the history
  • Loading branch information
rawsta committed Aug 7, 2024
1 parent c27d6e1 commit 9b20991
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/_includes/components/snipp-card.njk
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@
<span class="text-step-min-1">
<span class="button post-tag lang-{{ item.data.syntax }}"> {{ item.data.syntax }} </span>
</span>
</div>
{% if headingContext === "h2" %}
<h2><a href="{{ item.url | url }}">{{ item.data.title }}</a></h2>
{% else %}
<h3><a href="{{ item.url | url }}">{{ item.data.title }}</a></h3>
{% endif %}
<p>{{ item.data.description }}</p>
</div>
<details>
<summary>{{ item.data.description }}</summary>
<p>{{ item.content | safe }}</p>
</details>
</div>
</li>
2 changes: 1 addition & 1 deletion src/_layouts/snippets.njk
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ masonry: true
{{ content | safe }}
</div>

<ul class="snippetcards | grid" role="list" data-rows="list">
<ul class="snippetcards | list" role="list" data-rows="list">
<!-- loop snippets -->
{% set itemList = pagination.items %}
{% for item in itemList %}
Expand Down

0 comments on commit 9b20991

Please sign in to comment.