mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-12 18:15:31 +00:00
post: Improve Microdata metadata (#407)
This commit is contained in:
1 parent
4856bfedef
commit
f72cced47c
2 files changed
+7
-4
No files matched your search
@@ -6,10 +6,13 @@
|
||||
{{ if ne $.Params.Lastmod $.Params.Date }}
|
||||
{{ i18n "last_updated" }}
|
||||
{{ end }}
|
||||
<time datetime="{{ $.Date }}" itemprop="datePublished">
|
||||
<time datetime="{{ $.Date }}" itemprop="datePublished dateModified">
|
||||
{{ $.Lastmod.Format $.Site.Params.date_format }}
|
||||
</time>
|
||||
</span>
|
||||
<span itemscope itemprop="author publisher" itemtype="http://schema.org/Person">
|
||||
<meta itemprop="name" content="{{ $.Site.Params.name }}">
|
||||
</span>
|
||||
|
||||
{{ if ne $.Site.Params.reading_time false }}
|
||||
<span class="middot-divider"></span>
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
{{ $post := .post }}
|
||||
|
||||
<div class="article-list-item" itemscope itemprop="blogPost">
|
||||
<div class="article-list-item" itemscope itemprop="blogPost" itemtype="http://schema.org/BlogPosting">
|
||||
{{ $preview := $post.Params.header.preview | default true }}
|
||||
{{ if and $post.Params.header.image $preview }}
|
||||
<a href="{{ $post.Permalink }}">
|
||||
<img src="{{ "/img/" | relURL }}{{ $post.Params.header.image }}" class="article-banner" itemprop="image">
|
||||
</a>
|
||||
{{end}}
|
||||
<h3 class="article-title" itemprop="name">
|
||||
<h3 class="article-title" itemprop="headline">
|
||||
<a href="{{ $post.Permalink }}" itemprop="url">{{ $post.Title }}</a>
|
||||
</h3>
|
||||
{{ partial "article_metadata" (dict "content" $post "is_list" 1) }}
|
||||
@@ -20,7 +20,7 @@
|
||||
{{ $post.Content }}
|
||||
{{ end }}
|
||||
</div>
|
||||
<p class="read-more">
|
||||
<p class="read-more" itemprop="mainEntityOfPage">
|
||||
<a href="{{ $post.Permalink }}" class="btn btn-primary btn-outline">
|
||||
{{ i18n "continue_reading" }}
|
||||
</a>
|
||||
|
||||
Reference in new issue
Block a user