Skip to content

Commit

Permalink
Merge pull request #1889 from hydephp/fix-hardcoded-metadata-url-asse…
Browse files Browse the repository at this point in the history
…mbly

Fix URL metadata for blog posts not using customized post output directories
  • Loading branch information
caendesilva authored Jul 23, 2024
2 parents 31e3730 + 916f611 commit cf71a76
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 @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@php /** @var \Hyde\Pages\MarkdownPost $post */ @endphp
<article class="mt-4 mb-8" itemscope itemtype="https://schema.org/Article">
<meta itemprop="identifier" content="{{ $post->identifier }}">
@if(Hyde::hasSiteUrl())
<meta itemprop="url" content="{{ Hyde::url('posts/' . $post->identifier) }}">
@if($post->getCanonicalUrl())
<meta itemprop="url" content="{{ $post->getCanonicalUrl() }}">
@endif

<header>
Expand Down

0 comments on commit cf71a76

Please sign in to comment.