Skip to content

Commit

Permalink
Add more rich HTML content
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Mar 23, 2022
1 parent ee2f5c6 commit 8eb6778
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
18 changes: 14 additions & 4 deletions resources/views/components/article-excerpt.blade.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,23 @@
<article class="mt-4 mb-8">
<article class="mt-4 mb-8" itemscope itemtype="https://schema.org/Article">
<meta itemprop="identifier" content="{{ $post->slug }}">
@if(Hyde::uriPath())
<meta itemprop="url" content="{{ Hyde::uriPath($post->slug) }}">
@endif

<footer>
@isset($post->matter['date'])
<span class="opacity-75">
{{ date('M jS, Y', strtotime($post->matter['date'])) }},
<span itemprop="dateCreated datePublished">
{{ date('M jS, Y', strtotime($post->matter['date'])) }}</span>,
</span>
@endisset
@isset($post->matter['author'])
<span class="opacity-75">by</span>
{{ $post->matter['author'] }}
<span itemprop="author" itemscope itemtype="https://schema.org/Person">
<span class="opacity-75">by</span>
<span itemprop="name">
{{ $post->matter['author'] }}
</span>
</span>
@endisset
</footer>
<header>
Expand Down
4 changes: 4 additions & 0 deletions resources/views/components/post/article.blade.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
<article id="post-article" itemscope itemtype="https://schema.org/Article"
@class(['mx-auto prose', 'torchlight-enabled' => Hyde\Framework\Hyde::hasTorchlight()])>
<meta itemprop="identifier" content="{{ $post->slug }}">
@if(Hyde::uriPath())
<meta itemprop="url" content="{{ Hyde::uriPath($post->slug) }}">
@endif

<header role="doc-pageheader">
<h1 itemprop="headline" class="mb-4">{{ $title ?? 'Blog Post' }}</h1>
<div id="byline" aria-label="About the post" role="doc-introduction">
Expand Down

0 comments on commit 8eb6778

Please sign in to comment.