Skip to content

Commit

Permalink
Merge pull request #1317 from hydephp/update-article-excerpt-componen…
Browse files Browse the repository at this point in the history
…t-to-use-route-helper-method-instead-of-legacy-link-formatter

Update article excerpt component to use route helper method instead of legacy link formatter
  • Loading branch information
caendesilva authored Mar 17, 2023
2 parents aa75e9e + 9199c3a commit 42d03b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ This release is the first since the official release of HydePHP 1.0.0. It contai
### Fixed
- Fixed https://github.com/hydephp/develop/issues/1301 in https://github.com/hydephp/develop/pull/1302
- Fixed https://github.com/hydephp/develop/issues/1313 in https://github.com/hydephp/develop/commit/134776a1e4af395dab5c15d611fc64c9ebce8596
- Fixed https://github.com/hydephp/develop/issues/1316 in https://github.com/hydephp/develop/pull/1317
- Added missing function imports in https://github.com/hydephp/develop/pull/1309

### Security
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
@endif

<header>
<a href="posts/{{ Hyde::formatLink($post->identifier . '.html') }}" class="block w-fit">
<a href="{{ $post->getRoute() }}" class="block w-fit">
<h2 class="text-2xl font-bold text-gray-700 hover:text-gray-900 dark:text-gray-200 dark:hover:text-white transition-colors duration-75">
{{ $post->data('title') ?? $post->title }}
</h2>
Expand Down Expand Up @@ -39,7 +39,7 @@
@endisset

<footer>
<a href="posts/{{ Hyde::formatLink($post->identifier . '.html') }}"
<a href="{{ $post->getRoute() }}"
class="text-indigo-500 hover:underline font-medium">
Read post</a>
</footer>
Expand Down

0 comments on commit 42d03b8

Please sign in to comment.