Skip to content

Commit

Permalink
v0.1.22
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Mar 27, 2024
1 parent c26747f commit f855311
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased](https://github.com/nationalarchives/tna-frontend-jinja/compare/v0.1.21...HEAD)
## [Unreleased](https://github.com/nationalarchives/tna-frontend-jinja/compare/v0.1.22...HEAD)

### Added
### Changed
Expand All @@ -14,6 +14,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
### Security

## [0.1.22](https://github.com/nationalarchives/tna-frontend-jinja/compare/v0.1.21...v0.1.22) - 2024-03-27

### Fixed

- Card actions now work without attributes

## [0.1.21](https://github.com/nationalarchives/tna-frontend-jinja/compare/v0.1.20...v0.1.21) - 2024-03-26

### Changed
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="tna-frontend-jinja",
version="0.1.21",
version="0.1.22",
author="Andrew Hosgood",
author_email="[email protected]",
description="TNA Frontend Jinja templates",
Expand Down
2 changes: 1 addition & 1 deletion tna_frontend_jinja/templates/components/card/macro.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
{%- if params.actions %}
<div class="tna-card__actions">
{%- for item in params.actions %}
<a href="{{ item.href }}" class="tna-card__action{% if item.classes %} {{ item.classes }}{% endif %}" {%- if item.title %} title="{{ item.title }}"{% endif %} {%- for attribute, value in item.attributes.items() %} {{ attribute }}="{{ value }}"{% endfor %}>
<a href="{{ item.href }}" class="tna-card__action{% if item.classes %} {{ item.classes }}{% endif %}" {%- if item.title %} title="{{ item.title }}"{% endif %} {%- if item.attributes %}{% for attribute, value in item.attributes.items() %} {{ attribute }}="{{ value }}"{% endfor %}{% endif %}>
{{ item.text }}
</a>
{%- endfor %}
Expand Down

0 comments on commit f855311

Please sign in to comment.