From 37391532a525b5579e6a19c62e98b2345db01d0f Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Tue, 23 Jul 2024 18:54:41 +0200 Subject: [PATCH 1/3] Use the canonical URL instead of hardcoded path assembly This otherwise won't work if the output directory is changed --- .../resources/views/components/article-excerpt.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/framework/resources/views/components/article-excerpt.blade.php b/packages/framework/resources/views/components/article-excerpt.blade.php index 666c628ab0f..f9bd5d82c43 100644 --- a/packages/framework/resources/views/components/article-excerpt.blade.php +++ b/packages/framework/resources/views/components/article-excerpt.blade.php @@ -2,7 +2,7 @@
@if(Hyde::hasSiteUrl()) - + @endif
From cf3a147ee086115c593ebeb019a70173b6ce5566 Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Tue, 23 Jul 2024 18:55:05 +0200 Subject: [PATCH 2/3] Use more general helper to check state This means it's enabled for front matter values as well --- .../resources/views/components/article-excerpt.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/framework/resources/views/components/article-excerpt.blade.php b/packages/framework/resources/views/components/article-excerpt.blade.php index f9bd5d82c43..311b26e85aa 100644 --- a/packages/framework/resources/views/components/article-excerpt.blade.php +++ b/packages/framework/resources/views/components/article-excerpt.blade.php @@ -1,7 +1,7 @@ @php /** @var \Hyde\Pages\MarkdownPost $post */ @endphp
- @if(Hyde::hasSiteUrl()) + @if($post->getCanonicalUrl()) @endif From 916f611e18e32a49e71c63f6feba8e0f4ca74715 Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Tue, 23 Jul 2024 18:56:08 +0200 Subject: [PATCH 3/3] Update RELEASE_NOTES.md --- RELEASE_NOTES.md | 1 + 1 file changed, 1 insertion(+) diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 397bdfae4d5..9894f033425 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -38,6 +38,7 @@ This serves two purposes: - Added missing collection key types in Hyde facade method annotations in https://github.com/hydephp/develop/pull/1784 - Fixed heading permalinks button text showing in Google Search previews https://github.com/hydephp/develop/issues/1801 in https://github.com/hydephp/develop/pull/1803 - Fixed routing issues with nested 404 pages where an index page does not exist https://github.com/hydephp/develop/issues/1781 in https://github.com/hydephp/develop/pull/1880 +- Fixed URL metadata for blog posts not using customized post output directories in https://github.com/hydephp/develop/pull/1889 - Realtime Compiler: Updated the exception handler to match HTTP exception codes when sending error responses in https://github.com/hydephp/develop/pull/1853 - Realtime Compiler: Improved routing for nested index pages in https://github.com/hydephp/develop/pull/1852 - Realtime Compiler: Improved the dashboard https://github.com/hydephp/develop/pull/1866 fixing https://github.com/hydephp/realtime-compiler/issues/22 and https://github.com/hydephp/realtime-compiler/issues/29