Skip to content

Commit

Permalink
Merge pull request #687 from hydephp/fix-hardcoded-metadata-url-assembly
Browse files Browse the repository at this point in the history
Fix URL metadata for blog posts not using customized post output directories
  • Loading branch information
caendesilva authored Dec 21, 2024
2 parents de86876 + 9baf001 commit eab4777
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/views/components/article-excerpt.blade.php
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 eab4777

Please sign in to comment.