mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-18 10:52:19 +01:00
Use Jekyll's smartify
filter when possible. (#24866)
This commit is contained in:
parent
3de46286b2
commit
02e4f6e513
@ -1,14 +1,14 @@
|
|||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
<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="author" content="{{ site.authors }}">
|
||||||
<meta name="generator" content="Jekyll v{{ jekyll.version }}">
|
<meta name="generator" content="Jekyll v{{ jekyll.version }}">
|
||||||
|
|
||||||
<title>
|
<title>
|
||||||
{%- if page.title -%}
|
{%- if page.title -%}
|
||||||
{{ page.title }} · {{ site.title }}
|
{{ page.title | smartify }} · {{ site.title | smartify }}
|
||||||
{%- else -%}
|
{%- else -%}
|
||||||
{{ site.title }} · {{ site.description }}
|
{{ site.title | smartify }} · {{ site.description | smartify }}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
</title>
|
</title>
|
||||||
|
|
||||||
|
@ -2,14 +2,14 @@
|
|||||||
<meta name="twitter:card" content="{% if page.title %}summary{% else %}summary_large_image{% endif %}">
|
<meta name="twitter:card" content="{% if page.title %}summary{% else %}summary_large_image{% endif %}">
|
||||||
<meta name="twitter:site" content="@{{ site.twitter }}">
|
<meta name="twitter:site" content="@{{ site.twitter }}">
|
||||||
<meta name="twitter:creator" content="@{{ site.twitter }}">
|
<meta name="twitter:creator" content="@{{ site.twitter }}">
|
||||||
<meta name="twitter:title" content="{{ page.title | default: site.title }}">
|
<meta name="twitter:title" content="{{ page.title | default: site.title | smartify }}">
|
||||||
<meta name="twitter:description" content="{{ page.description | default: site.description }}">
|
<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 %}">
|
<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 -->
|
<!-- Facebook -->
|
||||||
<meta property="og:url" content="{{ site.url | append: page.url }}">
|
<meta property="og:url" content="{{ site.url | append: page.url }}">
|
||||||
<meta property="og:title" content="{{ page.title | default: site.title }}">
|
<meta property="og:title" content="{{ page.title | default: site.title | smartify }}">
|
||||||
<meta property="og:description" content="{{ page.description | default: site.description }}">
|
<meta property="og:description" content="{{ page.description | default: site.description | smartify }}">
|
||||||
<meta property="og:type" content="website">
|
<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" 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 }}">
|
<meta property="og:image:secure_url" content="{{ site.url | append: site.social_image_path }}">
|
||||||
|
@ -25,8 +25,8 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<main class="col-12 col-md-9 col-xl-8 py-md-3 pl-md-5 bd-content" role="main">
|
<main class="col-12 col-md-9 col-xl-8 py-md-3 pl-md-5 bd-content" role="main">
|
||||||
<h1 class="bd-title" id="content">{{ page.title }}</h1>
|
<h1 class="bd-title" id="content">{{ page.title | smartify }}</h1>
|
||||||
<p class="bd-lead">{{ page.description }}</p>
|
<p class="bd-lead">{{ page.description | smartify }}</p>
|
||||||
{% include ads.html %}
|
{% include ads.html %}
|
||||||
{{ content }}
|
{{ content }}
|
||||||
</main>
|
</main>
|
||||||
|
@ -4,8 +4,8 @@ layout: default
|
|||||||
|
|
||||||
<div class="container my-5">
|
<div class="container my-5">
|
||||||
<main class="bd-content" role="main">
|
<main class="bd-content" role="main">
|
||||||
<h1 class="bd-title" id="content">{{ page.title }}</h1>
|
<h1 class="bd-title" id="content">{{ page.title | smartify }}</h1>
|
||||||
<p class="bd-lead">{{ page.description }}</p>
|
<p class="bd-lead">{{ page.description | smartify }}</p>
|
||||||
{% include ads.html %}
|
{% include ads.html %}
|
||||||
{{ content }}
|
{{ content }}
|
||||||
</main>
|
</main>
|
||||||
|
@ -586,7 +586,7 @@ Create responsive tables by adding `.table-responsive{-sm|-md|-lg|-xl}` to any `
|
|||||||
|
|
||||||
## Captions
|
## Captions
|
||||||
|
|
||||||
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.
|
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.
|
||||||
|
|
||||||
{% example html %}
|
{% example html %}
|
||||||
<table class="table">
|
<table class="table">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user