]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix whitespace in `title` tag.
authorXhmikosR <xhmikosr@gmail.com>
Thu, 28 Feb 2019 14:12:53 +0000 (16:12 +0200)
committerXhmikosR <xhmikosr@gmail.com>
Wed, 27 Mar 2019 19:02:22 +0000 (21:02 +0200)
_config.yml
docs/_includes/header.html

index fafb966030ac221123ec568da316b88bb1298927..5f8a891651fa3ba0bfaacfc53cfa9fc57c5d4dc6 100644 (file)
@@ -20,6 +20,8 @@ plugins:
   - jekyll-sitemap
 
 # Custom vars
+title:            Bootstrap
+description:      "The world's most popular mobile-first and responsive front-end framework."
 current_version:  3.4.1
 docs_version:     3.4
 repo:             https://github.com/twbs/bootstrap
index 8b0e175d13744c3fb28bd5d6b4fa1697a8832e12..6afac5292c7fef6c3bbaa22f431a029cf445f3d1 100644 (file)
@@ -5,13 +5,15 @@
 <meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors">
 
 <title>
-  {% if page.layout == "home" %}
-    {{ page.title }}
-  {% else %}
-    {{ page.title }} &middot; Bootstrap
-  {% endif %}
+  {%- if page.title -%}
+    {{ page.title | smartify }} · {{ site.title | smartify }}
+  {%- else -%}
+    {{ site.title | smartify }} · {{ site.description | smartify }}
+  {%- endif -%}
 </title>
 
+<link rel="canonical" href="{{ site.url | append: site.baseurl | append: page.url }}">
+
 <!-- Bootstrap core CSS -->
 {% if site.github %}
   <link href="{{ site.baseurl }}/dist/css/bootstrap.min.css" rel="stylesheet">