Skip to content

Commit e050573

Browse files
committed
experimental meta
experimental meta url
1 parent 8cfbf17 commit e050573

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

_includes/meta.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,24 @@
77
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
88

99
{% if page.layout == "page" %}
10-
<meta name="description" content="{{ page.content|markdownify|strip_html|truncatewords:100 }}" />
11-
<meta property="og:description" content="{{ page.content|markdownify|strip_html|truncatewords:100 }}" />
10+
<meta name="description" content="{{ page.content|markdownify|strip_html|truncatewords:50 }}" />
11+
<meta property="og:description" content="{{ page.content|markdownify|strip_html|truncatewords:50 }}" />
1212
{% elsif page.excerpt %}
13-
<meta name="description" content="{{ page.content|strip_html|truncatewords:100 }}" />
14-
<meta property="og:description" content="{{ page.content|strip_html|truncatewords:100 }}" />
13+
<meta name="description" content="{{ page.content|strip_html|truncatewords:75 }}" />
14+
<meta property="og:description" content="{{ page.content|strip_html|truncatewords:75 }}" />
1515
{% else %}
1616
<meta name="description" content="{{ site.description }}">
1717
<meta property="og:description" content="{{ site.description }}" />
1818
{% endif %}
1919
<meta name="author" content="{{ site.name }}" />
2020

2121
{% if page.title %}
22-
<meta property="og:title" content="{{ page.title }}" />
23-
<meta property="twitter:title" content="{{ page.title }}" />
22+
<meta property="og:title" content="{{ page.title }} — {{ site.name }}" />
23+
<meta property="twitter:title" content="{{ page.title }} — {{ site.name }}" />
2424
{% endif %}
2525

2626
{% if page.image %}
2727
<meta property="og:image" content="{{ site.url }}{{ page.image }}" />
2828
{% endif %}
2929

30-
<meta name="url" content="{{ site.url }}" />
30+
<meta name="url" content="{{ site.url }}{{ post.url }}" />

0 commit comments

Comments
 (0)