Skip to content

Commit b90c902

Browse files
车亮亮车亮亮
authored andcommitted
seo优化
1 parent 56f64d5 commit b90c902

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

templates/blog/article_detail.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<title>{{ article.title }} | {{ SITE_DESCRIPTION }}</title>
55
<meta property="og:type" content="article"/>
66
<meta property="og:title" content="{{ article.title }}"/>
7+
<meta property="og:description" content="{{ article.body|truncatewords:100 }}"/>
78
<meta property="og:url"
89
content="{{ article.get_full_url }}"/>
910
<meta property="article:published_time" content="{% datetimeformat article.pub_time %}"/>

templates/blog/tags/article_info.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
{% load blog_tags %}
22
<article id="post-{{ article.pk }} "
3-
class="post-3815 post type-post status-publish format-standard hentry"
4-
itemscope itemtype="http://schema.org/Article">
3+
class="post-3815 post type-post status-publish format-standard hentry">
54
<header class="entry-header">
65

7-
<h1 class="entry-title" itemprop="name">
6+
<h1 class="entry-title">
87
{% if isindex %}
98
<a href="{{ article.get_absolute_url }}"
109
rel="bookmark">{{ article.title }}</a>

templates/blog/tags/article_meta_info.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
itemprop="datePublished" content="{% datetimeformat article.created_time %}"
55
rel="bookmark">
66

7-
<time class="entry-date"
7+
<time class="entry-date updated"
88
datetime="{{ article.created_time }}">
99
{% datetimeformat article.created_time %}</time>
1010
</a>

0 commit comments

Comments
 (0)