Skip to content

Commit 483fd08

Browse files
committed
Tweak
1 parent d182f2d commit 483fd08

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/NewsWidget.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class NewsWidget extends BaseWidget implements TwigAware, RequestAware, CacheAwa
2828
protected $priority = 150;
2929
protected $template = '@news-widget/news.html.twig';
3030
protected $zone = RequestZone::BACKEND;
31-
protected $cacheDuration = 3600;
31+
protected $cacheDuration = 4 * 3600;
3232

3333
protected function run(array $params = []): ?string
3434
{

templates/news.html.twig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
<p><strong>{{ title|raw }}</strong></p>
77
{{ news|raw }}
88
{% if link %}
9-
<a href="{{ link }}" target="_blank" class="btn btn-tertiary btn-sm">{{ __('general.phrase.read-more') }}</a>
9+
<a href="{{ link }}" target="_blank" class="btn btn-tertiary btn-sm">
10+
<i class="fas fa-external-link-square-alt"></i> {{ __('general.phrase.read-more') }}
11+
</a>
1012
{% endif %}
1113
</div>
1214
</div>

0 commit comments

Comments
 (0)