Skip to content

Commit b1a0872

Browse files
committed
Use Jekyll's smartify filter when possible.
1 parent 3de4628 commit b1a0872

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

_includes/header.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<meta charset="utf-8">
22
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
3-
<meta name="description" content="{{ page.description | default: site.description }}">
3+
<meta name="description" content="{{ page.description | default: site.description | smartify }}">
44
<meta name="author" content="{{ site.authors }}">
55
<meta name="generator" content="Jekyll v{{ jekyll.version }}">
66

77
<title>
88
{%- if page.title -%}
9-
{{ page.title }} · {{ site.title }}
9+
{{ page.title | smartify }} · {{ site.title | smartify }}
1010
{%- else -%}
11-
{{ site.title }} · {{ site.description }}
11+
{{ site.title | smartify }} · {{ site.description | smartify }}
1212
{%- endif -%}
1313
</title>
1414

_includes/social.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
<meta name="twitter:card" content="{% if page.title %}summary{% else %}summary_large_image{% endif %}">
33
<meta name="twitter:site" content="@{{ site.twitter }}">
44
<meta name="twitter:creator" content="@{{ site.twitter }}">
5-
<meta name="twitter:title" content="{{ page.title | default: site.title }}">
6-
<meta name="twitter:description" content="{{ page.description | default: site.description }}">
5+
<meta name="twitter:title" content="{{ page.title | default: site.title | smartify }}">
6+
<meta name="twitter:description" content="{{ page.description | default: site.description | smartify }}">
77
<meta name="twitter:image" content="{% if page.title %}{{ site.url | append: site.social_logo_path }}{% else %}{{ site.url | append: site.social_image_path }}{% endif %}">
88

99
<!-- Facebook -->
1010
<meta property="og:url" content="{{ site.url | append: page.url }}">
11-
<meta property="og:title" content="{{ page.title | default: site.title }}">
12-
<meta property="og:description" content="{{ page.description | default: site.description }}">
11+
<meta property="og:title" content="{{ page.title | default: site.title | smartify }}">
12+
<meta property="og:description" content="{{ page.description | default: site.description | smartify }}">
1313
<meta property="og:type" content="website">
1414
<meta property="og:image" content="{{ site.url | replace: 'https://', 'http://' | append: site.social_image_path }}">
1515
<meta property="og:image:secure_url" content="{{ site.url | append: site.social_image_path }}">

_layouts/docs.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
{% endif %}
2626

2727
<main class="col-12 col-md-9 col-xl-8 py-md-3 pl-md-5 bd-content" role="main">
28-
<h1 class="bd-title" id="content">{{ page.title }}</h1>
29-
<p class="bd-lead">{{ page.description }}</p>
28+
<h1 class="bd-title" id="content">{{ page.title | smartify }}</h1>
29+
<p class="bd-lead">{{ page.description | smartify }}</p>
3030
{% include ads.html %}
3131
{{ content }}
3232
</main>

_layouts/simple.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
<div class="container my-5">
66
<main class="bd-content" role="main">
7-
<h1 class="bd-title" id="content">{{ page.title }}</h1>
8-
<p class="bd-lead">{{ page.description }}</p>
7+
<h1 class="bd-title" id="content">{{ page.title | smartify }}</h1>
8+
<p class="bd-lead">{{ page.description | smartify }}</p>
99
{% include ads.html %}
1010
{{ content }}
1111
</main>

docs/4.0/content/tables.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ Create responsive tables by adding `.table-responsive{-sm|-md|-lg|-xl}` to any `
586586

587587
## Captions
588588

589-
A `<caption>` functions like a heading for a table. It helps users with screen readers to find a table and understand what its about and decide if they want to read it.
589+
A `<caption>` functions like a heading for a table. It helps users with screen readers to find a table and understand what it's about and decide if they want to read it.
590590

591591
{% example html %}
592592
<table class="table">

0 commit comments

Comments
 (0)