refactor: Update itemid attribute in show.blade.php

The commit updates the itemid attribute in the show.blade.php file to dynamically set it based on the current URL. This change improves the accuracy of metadata for search engine optimization.
This commit is contained in:
Rico van Zelst
2023-12-12 14:40:52 +01:00
parent 3de5f42860
commit 83eb1421f7

View File

@@ -11,7 +11,7 @@
posts</a> posts</a>
<article class="max-w-screen-md mx-auto mt-2 prose prose-stone prose-invert" itemscope <article class="max-w-screen-md mx-auto mt-2 prose prose-stone prose-invert" itemscope
itemtype="https://schema.org/BlogPosting" itemtype="https://schema.org/BlogPosting"
itemid="https://www.dataliberate.com/2019/05/14/library-metadata-evolution-final-mile/"> itemid="{{url()->current()}}">
<meta itemprop="wordCount" content="{{str_word_count($post->contents)}}"> <meta itemprop="wordCount" content="{{str_word_count($post->contents)}}">
<h3 class="not-prose text-sm text-center text-orange-100 font-semibold" itemprop="datePublished"> <h3 class="not-prose text-sm text-center text-orange-100 font-semibold" itemprop="datePublished">
{{ Carbon::parse($post->date)->format('F d, Y') }} {{ Carbon::parse($post->date)->format('F d, Y') }}