We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 702f50a commit f1cb2abCopy full SHA for f1cb2ab
layout/includes/head.pug
@@ -6,9 +6,18 @@
6
- if (is_year()) pageTitle += ': ' + page.year;
7
- pageTitle = pageTitle ? pageTitle += ' | ' + config.title : config.title;
8
- var banner = bannerOf(page) || theme.default.url;
9
+-
10
+ var description = truncate(
11
+ strip_html(page.content) || config.description || theme.profile.description,
12
+ {
13
+ length: 140,
14
+ separator: ' ',
15
+ omission: '…',
16
+ }
17
+ )
18
-
19
var openGraph = open_graph({
- description: page.content || config.description || theme.profile.description,
20
+ description,
21
image: banner,
22
fb_app_id: theme.facebook,
23
fb_admins: theme.fb_admin,
0 commit comments