Skip to content

Commit

Permalink
v0.2.13
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Sep 13, 2024
1 parent 062379c commit d7222ec
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 9 deletions.
12 changes: 11 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.2.12...HEAD)
## [Unreleased](https://github.com/nationalarchives/tna-frontend-jinja/compare/v0.2.13...HEAD)

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

## [0.2.13](https://github.com/nationalarchives/tna-frontend-jinja/compare/v0.2.12...v0.2.13) - 2024-09-13

### Changed

- Upgraded TNA Frontend to `v0.2.13`

### Fixed

- Stopped pagination components breaking when no `items` are passed

## [0.2.12](https://github.com/nationalarchives/tna-frontend-jinja/compare/v0.2.11...v0.2.12) - 2024-09-05

### Changed
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ We test each component against its published [component fixtures](https://github

| TNA Frontend Jinja | Compatible TNA Frontend versions |
| ------------------ | -------------------------------- |
| `0.2.13` | `0.2.13` |
| `0.2.12` | `0.2.12` |
| `0.2.11` | `0.2.11` |
| `0.2.10` | `0.2.10` |
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"test": "node test-fixtures.mjs"
},
"dependencies": {
"@nationalarchives/frontend": "0.2.12",
"@nationalarchives/frontend": "0.2.13",
"diff": "^5.1.0",
"glob": "^10.2.7",
"js-beautify": "^1.14.8",
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.2.12",
version="0.2.13",
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 @@ -50,7 +50,7 @@
{%- endif %}
{%- if params.imageSrc %}
{%- if params.href and (not params.fullAreaClick or params.actions) %}
<a href="{{ params.href }}" class="tna-card__image-container{% if params.hrefClasses %} {{ params.hrefClasses }}{% endif %}" tabindex="-1" {%- if params.hrefAttributes %}{%- for attribute, value in params.hrefAttributes.items() %} {{ attribute }}{% if value != '' %}="{{ value }}"{% endif %}{% endfor %}{% endif %}>
<a href="{{ params.href }}" class="tna-card__image-container{% if params.hrefClasses %} {{ params.hrefClasses }}{% endif %}" tabindex="-1" aria-hidden="true" {%- if params.hrefAttributes %}{%- for attribute, value in params.hrefAttributes.items() %} {{ attribute }}{% if value != '' %}="{{ value }}"{% endif %}{% endfor %}{% endif %}>
{%- else %}
<div class="tna-card__image-container">
{%- endif %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
}) }}
</div>
{% endif -%}
{% if params['items'] -%}
{% if 'items' in params -%}
<ul class="tna-pagination__list">
{% for item in params['items'] -%}
{% if item.ellipsis -%}
Expand Down

0 comments on commit d7222ec

Please sign in to comment.