aboutsummaryrefslogtreecommitdiff
path: root/docs/_includes
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2016-10-24 14:27:52 -0700
committerMark Otto <[email protected]>2016-10-24 14:27:52 -0700
commitf7f3e62c662c88d578cf83e8245853d447b2aad9 (patch)
treebff6a0e3c05c3ff54dbc7507aa107022a5ca8772 /docs/_includes
parent11d52ba9498990483d822a5a42d371393a110080 (diff)
parentcf5d94f6d5685c371dcb157af74a3c6b14ec8d8e (diff)
downloadbootstrap-f7f3e62c662c88d578cf83e8245853d447b2aad9.tar.xz
bootstrap-f7f3e62c662c88d578cf83e8245853d447b2aad9.zip
Merge branch 'v4-dev' into v4-docs-streamlined
Diffstat (limited to 'docs/_includes')
-rw-r--r--docs/_includes/header.html10
-rw-r--r--docs/_includes/nav-docs.html2
-rw-r--r--docs/_includes/nav-home.html6
-rw-r--r--docs/_includes/page-headers.html5
-rw-r--r--docs/_includes/social.html31
5 files changed, 44 insertions, 10 deletions
diff --git a/docs/_includes/header.html b/docs/_includes/header.html
index 3fc75c058..54bfddf69 100644
--- a/docs/_includes/header.html
+++ b/docs/_includes/header.html
@@ -1,17 +1,17 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
-<meta name="description" content="Bootstrap, a sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.">
-<meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors">
<title>
- {% if page.layout == "home" %}
- {{ page.title }}
+ {% if page.title %}
+ {{ page.title }} &middot; {{ site.title }}
{% else %}
- {{ page.title }} &middot; Bootstrap
+ {{ site.title }} &middot; {{ site.description }}
{% endif %}
</title>
+{% include social.html %}
+
<!-- Bootstrap core CSS -->
{% if site.github %}
<link href="{{ site.baseurl }}/dist/css/bootstrap.min.css" rel="stylesheet">
diff --git a/docs/_includes/nav-docs.html b/docs/_includes/nav-docs.html
index 6f4d1c0fd..edd88f345 100644
--- a/docs/_includes/nav-docs.html
+++ b/docs/_includes/nav-docs.html
@@ -28,7 +28,7 @@
{% endif %}
<li class="{{ active }}">
- <a href="{{ site.baseurl }}/{{ group.title | downcase | replace: ' ', '-' }}/{{ doc.title | downcase | replace: ' ', '-' | replace:'-&-','-' }}">
+ <a href="{{ site.baseurl }}/{{ group.title | downcase | replace: ' ', '-' }}/{{ doc.title | downcase | replace: ' ', '-' | replace:'-&-','-' }}/">
{{ doc.title }}
</a>
diff --git a/docs/_includes/nav-home.html b/docs/_includes/nav-home.html
index c25d7d6bc..60faf5a4d 100644
--- a/docs/_includes/nav-home.html
+++ b/docs/_includes/nav-home.html
@@ -1,7 +1,7 @@
<header class="navbar navbar-light navbar-static-top bd-navbar">
<div class="container">
{% comment %}
- <nav class="nav navbar-nav pull-xs-right">
+ <nav class="nav navbar-nav float-xs-right">
<div class="nav-item dropdown">
<a class="nav-item nav-link dropdown-toggle" href="#" id="bd-versions" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
v{{ site.current_version }}
@@ -27,9 +27,7 @@
<nav>
<div class="clearfix">
- <button class="navbar-toggler pull-xs-right hidden-sm-up" type="button" data-toggle="collapse" data-target="#bd-main-nav" aria-controls="bd-main-nav" aria-expanded="false" aria-label="Toggle navigation">
- &#9776;
- </button>
+ <button class="navbar-toggler float-xs-right hidden-sm-up" type="button" data-toggle="collapse" data-target="#bd-main-nav" aria-controls="bd-main-nav" aria-expanded="false" aria-label="Toggle navigation"></button>
<a class="navbar-brand hidden-sm-up" href="{{ site.baseurl }}/">
Bootstrap
</a>
diff --git a/docs/_includes/page-headers.html b/docs/_includes/page-headers.html
index 26f5f95b1..50b59a982 100644
--- a/docs/_includes/page-headers.html
+++ b/docs/_includes/page-headers.html
@@ -18,6 +18,11 @@
<p class="lead">
Over a dozen reusable components built to provide buttons, dropdowns, input groups, navigation, alerts, and much more.
</p>
+{% elsif page.group == "utilities" %}
+ <h1>Utilities</h1>
+ <p class="lead">
+ Bootstrap includes dozens of utilities—classes with a single purpose to reduce the frequency of highly repetitive declarations.
+ </p>
{% elsif page.group == "javascript" %}
<h1>JavaScript plugins</h1>
<p class="lead">
diff --git a/docs/_includes/social.html b/docs/_includes/social.html
new file mode 100644
index 000000000..c488ea610
--- /dev/null
+++ b/docs/_includes/social.html
@@ -0,0 +1,31 @@
+<!-- Twitter -->
+<meta name="twitter:site" content="@{{ site.twitter }}">
+<meta name="twitter:creator" content="@{{ site.twitter }}">
+
+{% if page.title %}
+ <meta name="twitter:card" content="summary">
+ <meta name="twitter:title" content="{{ page.title }}">
+ <meta name="twitter:description" content="{{ page.description }}">
+ <meta name="twitter:image" content="{{ site.url }}{{ site.social_logo_path }}">
+{% else %}
+ <meta name="twitter:card" content="summary_large_image">
+ <meta name="twitter:title" content="{{ site.title }}">
+ <meta name="twitter:description" content="{{ site.description }}">
+ <meta name="twitter:image" content="{{ site.url }}{{ site.social_image_path }}">
+{% endif %}
+
+<!-- Facebook -->
+{% if page.title %}
+ <meta property="og:url" content="{{ site.url }}{{ page.url }}">
+ <meta property="og:title" content="{{ page.title }}">
+ <meta property="og:description" content="{{ page.description }}">
+{% else %}
+ <meta property="og:url" content="{{ site.url }}">
+ <meta property="og:title" content="{{ site.title }}">
+ <meta property="og:description" content="{{ site.description }}">
+{% endif %}
+<meta property="og:image" content="{{ site.url }}{{ site.social_image_path }}">
+
+<!-- Meta -->
+<meta name="description" content="{{ site.description }}">
+<meta name="author" content="{{ site.authors }}">