aboutsummaryrefslogtreecommitdiff
path: root/docs/_includes
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2016-10-09 14:36:43 -0700
committerMark Otto <[email protected]>2016-10-09 14:36:43 -0700
commit6c867667a19dcb1243153855d00e36e5ecd599d0 (patch)
tree83906930225ae824a4538fba44fe534e048129c6 /docs/_includes
parent88bf5af896a872d65752956e85adb66a9192e697 (diff)
parentf49a7a2a0830ced28c5dbd8f94e04ad2f9d7425d (diff)
downloadbootstrap-6c867667a19dcb1243153855d00e36e5ecd599d0.tar.xz
bootstrap-6c867667a19dcb1243153855d00e36e5ecd599d0.zip
Merge branch 'v4-dev' into v4-utils
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.html4
-rw-r--r--docs/_includes/social.html31
4 files changed, 38 insertions, 9 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 b4f4d1f9e..f9a7554f0 100644
--- a/docs/_includes/nav-docs.html
+++ b/docs/_includes/nav-docs.html
@@ -33,7 +33,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 a0f16e9b5..6dd3723f6 100644
--- a/docs/_includes/nav-home.html
+++ b/docs/_includes/nav-home.html
@@ -27,9 +27,7 @@
<nav>
<div class="clearfix">
- <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">
- &#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/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 }}">