Fix QQ share meta information (#450)

* add meta

* Update post.njk

* Update post.njk
This commit is contained in:
Ljcbaby 2022-02-28 16:41:32 +08:00 committed by GitHub
parent f4969a4e36
commit a67c5132fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,11 +11,16 @@
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="{{ url_for(theme.avatar.url or theme.images + '/avatar.gif') }}">
<meta itemprop="name" content="{{ author }}">
<meta itemprop="description" content="{{ description }}">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="{{ title }}">
<meta itemprop="description" content="{{ description }}">
</span>
<span hidden itemprop="post" itemscope itemtype="http://schema.org/CreativeWork">
<meta itemprop="name" content="{{ page.title + ' | ' + title }}">
<meta itemprop="description" content="{{ page.description }}">
</span>
{%- if post.header !== false %}