Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update article excerpt component to use route helper method instead of legacy link formatter #1317

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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