0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-03-02 02:29:24 +01:00

Fix whitespace in title tag.

This commit is contained in:
XhmikosR 2019-02-28 16:12:53 +02:00
parent 922e29d0eb
commit 7f08a90e08
2 changed files with 9 additions and 5 deletions

View File

@ -20,6 +20,8 @@ plugins:
- jekyll-sitemap - jekyll-sitemap
# Custom vars # Custom vars
title: Bootstrap
description: "The world's most popular mobile-first and responsive front-end framework."
current_version: 3.4.1 current_version: 3.4.1
docs_version: 3.4 docs_version: 3.4
repo: https://github.com/twbs/bootstrap repo: https://github.com/twbs/bootstrap

View File

@ -5,13 +5,15 @@
<meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors"> <meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors">
<title> <title>
{% if page.layout == "home" %} {%- if page.title -%}
{{ page.title }} {{ page.title | smartify }} · {{ site.title | smartify }}
{% else %} {%- else -%}
{{ page.title }} &middot; Bootstrap {{ site.title | smartify }} · {{ site.description | smartify }}
{% endif %} {%- endif -%}
</title> </title>
<link rel="canonical" href="{{ site.url | append: site.baseurl | append: page.url }}">
<!-- Bootstrap core CSS --> <!-- Bootstrap core CSS -->
{% if site.github %} {% if site.github %}
<link href="{{ site.baseurl }}/dist/css/bootstrap.min.css" rel="stylesheet"> <link href="{{ site.baseurl }}/dist/css/bootstrap.min.css" rel="stylesheet">