🔍️ Posts: Use latest h-entry microformat (#3115)

This commit is contained in:
Ben Word
2023-01-23 19:46:47 -07:00
committed by GitHub
parent d644887612
commit 353a60711d
2 changed files with 6 additions and 6 deletions

View File

@@ -1,13 +1,13 @@
<article @php(post_class())>
<article @php(post_class('h-entry'))>
<header>
<h1 class="entry-title">
<h1 class="p-name">
{!! $title !!}
</h1>
@include('partials.entry-meta')
</header>
<div class="entry-content">
<div class="e-content">
@php(the_content())
</div>

View File

@@ -1,10 +1,10 @@
<time class="updated" datetime="{{ get_post_time('c', true) }}">
<time class="dt-published" datetime="{{ get_post_time('c', true) }}">
{{ get_the_date() }}
</time>
<p class="byline author vcard">
<p>
<span>{{ __('By', 'sage') }}</span>
<a href="{{ get_author_posts_url(get_the_author_meta('ID')) }}" rel="author" class="fn">
<a href="{{ get_author_posts_url(get_the_author_meta('ID')) }}" class="p-author h-card">
{{ get_the_author() }}
</a>
</p>