diff options
| author | XhmikosR <[email protected]> | 2017-11-25 02:13:39 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-11-25 02:13:39 +0200 |
| commit | 02e4f6e5138d908f354a2e989137816befa7de47 (patch) | |
| tree | 6b6c9aaa1d08dcfa464a75351ad71ad893837822 /_includes | |
| parent | 3de46286b2340ba7e9cad7d331eef8c555fde94b (diff) | |
| download | bootstrap-02e4f6e5138d908f354a2e989137816befa7de47.tar.xz bootstrap-02e4f6e5138d908f354a2e989137816befa7de47.zip | |
Use Jekyll's `smartify` filter when possible. (#24866)
Diffstat (limited to '_includes')
| -rw-r--r-- | _includes/header.html | 6 | ||||
| -rw-r--r-- | _includes/social.html | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/_includes/header.html b/_includes/header.html index c2c9deca0..f2f1deff8 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -1,14 +1,14 @@ <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> -<meta name="description" content="{{ page.description | default: site.description }}"> +<meta name="description" content="{{ page.description | default: site.description | smartify }}"> <meta name="author" content="{{ site.authors }}"> <meta name="generator" content="Jekyll v{{ jekyll.version }}"> <title> {%- if page.title -%} - {{ page.title }} · {{ site.title }} + {{ page.title | smartify }} · {{ site.title | smartify }} {%- else -%} - {{ site.title }} · {{ site.description }} + {{ site.title | smartify }} · {{ site.description | smartify }} {%- endif -%} </title> diff --git a/_includes/social.html b/_includes/social.html index 68be4d6e9..277ee2313 100644 --- a/_includes/social.html +++ b/_includes/social.html @@ -2,14 +2,14 @@ <meta name="twitter:card" content="{% if page.title %}summary{% else %}summary_large_image{% endif %}"> <meta name="twitter:site" content="@{{ site.twitter }}"> <meta name="twitter:creator" content="@{{ site.twitter }}"> -<meta name="twitter:title" content="{{ page.title | default: site.title }}"> -<meta name="twitter:description" content="{{ page.description | default: site.description }}"> +<meta name="twitter:title" content="{{ page.title | default: site.title | smartify }}"> +<meta name="twitter:description" content="{{ page.description | default: site.description | smartify }}"> <meta name="twitter:image" content="{% if page.title %}{{ site.url | append: site.social_logo_path }}{% else %}{{ site.url | append: site.social_image_path }}{% endif %}"> <!-- Facebook --> <meta property="og:url" content="{{ site.url | append: page.url }}"> -<meta property="og:title" content="{{ page.title | default: site.title }}"> -<meta property="og:description" content="{{ page.description | default: site.description }}"> +<meta property="og:title" content="{{ page.title | default: site.title | smartify }}"> +<meta property="og:description" content="{{ page.description | default: site.description | smartify }}"> <meta property="og:type" content="website"> <meta property="og:image" content="{{ site.url | replace: 'https://', 'http://' | append: site.social_image_path }}"> <meta property="og:image:secure_url" content="{{ site.url | append: site.social_image_path }}"> |
