Skip to content

Commit

Permalink
larva-patterns - Adds new kicker image support to the article kicker …
Browse files Browse the repository at this point in the history
…module.
  • Loading branch information
marcagarcia committed Nov 18, 2024
1 parent 3dfe250 commit c0f27e9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unpublished Changes

## 1.67.0 11-16-2024
* larva-patterns - Adds new kicker image support to the article kicker module.

## 1.66.4 11-05-2024
* Remove Helvetica Fallback Fonts from body font in Rollingstone 2022

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ important information.
Clone this repository then, from the root, run the following commands:

```
nvm use
sh scripts/install-dependencies.sh
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ module.exports = {
article_kicker_text: 'Article Kicker',
article_kicker_url: '#',
article_kicker_link_classes: '',
article_kicker_image_markup: '',
};
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@
{% if article_kicker_url %}
<a href="{{ article_kicker_url }}" class="article-kicker-link {{ article_kicker_link_classes }}">
{% endif %}
{% if c_svg %}
{% if article_kicker_image_markup %}
{{ article_kicker_image_markup }}
{% elseif c_svg %}
{% include "@larva/components/c-svg/c-svg.twig" with c_svg %}
{% else %}
{{ article_kicker_text }}
{% endif %}
{% endif %}
{% if article_kicker_url %}
</a>
{% endif %}
Expand Down

0 comments on commit c0f27e9

Please sign in to comment.