]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
v4: Social meta tags (#20825)
authorMark Otto <markd.otto@gmail.com>
Mon, 3 Oct 2016 01:19:47 +0000 (18:19 -0700)
committerGitHub <noreply@github.com>
Mon, 3 Oct 2016 01:19:47 +0000 (18:19 -0700)
* descriptions for getting started pages

* descriptions for layout

* add content page descriptions

* more descriptions, updates to some existing ones

* correct site url

* add social stuff to config for twitter cards

* add twitter meta tags; use large image for homepage and regular card for all others

* add the assets

* more site config

* more social shiz to partial, remove existing meta for the partial, remove page title from homepage for simpler if statements

53 files changed:
_config.yml
docs/_includes/header.html
docs/_includes/social.html [new file with mode: 0644]
docs/about/brand.md
docs/about/history.md
docs/about/license.md
docs/about/team.md
docs/about/translations.md
docs/assets/brand/bootstrap-social-logo.png [new file with mode: 0644]
docs/assets/brand/bootstrap-social.png [new file with mode: 0644]
docs/components/alerts.md
docs/components/breadcrumb.md
docs/components/button-group.md
docs/components/buttons.md
docs/components/card.md
docs/components/carousel.md
docs/components/collapse.md
docs/components/dropdowns.md
docs/components/forms.md
docs/components/input-group.md
docs/components/jumbotron.md
docs/components/list-group.md
docs/components/modal.md
docs/components/navbar.md
docs/components/navs.md
docs/components/pagination.md
docs/components/popovers.md
docs/components/progress.md
docs/components/scrollspy.md
docs/components/tag.md
docs/components/tooltips.md
docs/content/code.md
docs/content/figures.md
docs/content/images.md
docs/content/reboot.md
docs/content/tables.md
docs/content/typography.md
docs/getting-started/accessibility.md
docs/getting-started/best-practices.md
docs/getting-started/browsers-devices.md
docs/getting-started/build-tools.md
docs/getting-started/contents.md
docs/getting-started/download.md
docs/getting-started/flexbox.md
docs/getting-started/introduction.md
docs/getting-started/javascript.md
docs/getting-started/options.md
docs/index.html
docs/layout/flexbox-grid.md
docs/layout/grid.md
docs/layout/media-object.md
docs/layout/overview.md
docs/layout/responsive-utilities.md

index f3283b4621aa12963189043a2a48a7ea1f2006cd..31c708ecd4131772c44e6732ab9376f82fedbd00 100644 (file)
@@ -14,7 +14,7 @@ destination:      _gh_pages
 host:             0.0.0.0
 port:             9001
 baseurl:          ""
-url:              http://getbootstrap.com
+url:              http://v4-alpha.getbootstrap.com
 encoding:         UTF-8
 exclude:          [assets/scss/]
 
@@ -22,6 +22,14 @@ gems:
   - jekyll-redirect-from
   - jekyll-sitemap
 
+# Social
+title: Bootstrap
+description: The most popular HTML, CSS, and JS framework in the world.
+twitter: getbootstrap
+authors: Mark Otto, Jacob Thornton, and Bootstrap contributors
+social_logo_path: /assets/brand/bootstrap-social-logo.png
+social_image_path: /assets/brand/bootstrap-social.png
+
 # Custom vars
 current_version:  4.0.0-alpha.4
 repo:             https://github.com/twbs/bootstrap
index 3fc75c0583023cd185cb796e5e448cdf9cef46d0..54bfddf6902be9a426f8b90ded8c6b2432c85584 100644 (file)
@@ -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/social.html b/docs/_includes/social.html
new file mode 100644 (file)
index 0000000..c488ea6
--- /dev/null
@@ -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 }}">
index fcb8804aed444cc2447b70761580f9e490b05dbc..546e9c1542c433642d94ee6b9f55a0b4265ddb96 100644 (file)
@@ -1,6 +1,7 @@
 ---
 layout: docs
 title: Brand guidelines
+description: Documentation and examples for Bootstrap's logo and brand usage guidelines.
 group: about
 ---
 
index ae4764ee73d906ecd793f2ca8be1cd753d1d6279..590a99c35f30afb679a8fc0f79f8791ece123b59 100644 (file)
@@ -1,6 +1,7 @@
 ---
 layout: docs
 title: History
+description: A brief overview of the history of Bootstrap.
 group: about
 redirect_from: "/about/"
 ---
index 997b1c9ef0783ee06003613c100075fd3f84be79..d614731bf000d75dbf4fe750bc7e2a8cb1508e94 100644 (file)
@@ -1,6 +1,7 @@
 ---
 layout: docs
 title: License FAQs
+description: Commonly asked questions about Bootstrap's open source license.
 group: about
 ---
 
index 2492471cf12fad10f146467437ba614b77cd6758..aa575f8f2b93c936b35fa9277e78341371aae597 100644 (file)
@@ -1,6 +1,7 @@
 ---
 layout: docs
 title: Team
+description: An overview of the founding team and core contributors to Bootstrap.
 group: about
 ---
 
index de6519bb318aeff96c51531eba20fe116e74590d..576259d356e2fe35c05eb1ac7ff2653bf6156795 100644 (file)
@@ -1,6 +1,7 @@
 ---
 layout: docs
 title: Translations
+description: Links to community-translated Bootstrap documentation sites.
 group: about
 ---
 
diff --git a/docs/assets/brand/bootstrap-social-logo.png b/docs/assets/brand/bootstrap-social-logo.png
new file mode 100644 (file)
index 0000000..a2f0168
Binary files /dev/null and b/docs/assets/brand/bootstrap-social-logo.png differ
diff --git a/docs/assets/brand/bootstrap-social.png b/docs/assets/brand/bootstrap-social.png
new file mode 100644 (file)
index 0000000..cfac9c5
Binary files /dev/null and b/docs/assets/brand/bootstrap-social.png differ
index 56e8b089c64ce20f93b178ce946c7da7a3985935..54172a6736348b407972c8072bfadd274db98e46 100644 (file)
@@ -1,6 +1,7 @@
 ---
 layout: docs
 title: Alerts
+description: Provide contextual feedback messages for typical user actions with the handful of available and flexible alert messages.
 group: components
 ---
 
index 40d407ddc5d8a3e3a3e4d2ef439ce7ce45310a13..8beaa0ae4a8bd0135eb6335e9ab0679f10059168 100644 (file)
@@ -1,6 +1,7 @@
 ---
 layout: docs
 title: Breadcrumb
+description: Indicate the current page's location within a navigational hierarchy.
 group: components
 ---
 
index c14d3d63ab427e9f96427f094891e2d14ea5308c..cff38e1b1335f0d9d7d8e9028ed8714837c336c1 100644 (file)
@@ -1,6 +1,7 @@
 ---
 layout: docs
 title: Button group
+description: Group a series of buttons together on a single line with the button group, and super-power them with JavaScript.
 group: components
 ---
 
index d5aa453d7aeb5754fb078f630d20295feb981851..02b14f913abdca12872635875be650ac11c11486 100644 (file)
@@ -1,6 +1,7 @@
 ---
 layout: docs
 title: Buttons
+description: Use Bootstrap's custom button styles for actions in forms, dialogs, and more with support for multiple sizes, states, and more.
 group: components
 redirect_from: "/components/"
 ---
index 1cf116d86917d437f5a4a374af99cc5314b5ca98..04f028189897124017991460ba298ca9a7a5bf21 100644 (file)
@@ -1,6 +1,7 @@
 ---
 layout: docs
 title: Cards
+description: Bootstrap Cards provide a flexible and extensible content container with multiple variants and options.
 group: components
 ---
 
index 5f177432f0f3c28f18b8a32121f19fb98dae97b6..5bc2997742d9cf6ad921e2c8838d872084e2ca8f 100644 (file)
@@ -1,6 +1,7 @@
 ---
 layout: docs
 title: Carousel
+description: A slideshow component for cycling through elements—images or slides of text—like a carousel.
 group: components
 ---
 
index ebbefeca4fe1af7454b6b1d20c8b19f4819e2ad3..aa82127ed38550922e0a9dc1f9b5aa01cc8e5e6f 100644 (file)
@@ -1,6 +1,7 @@
 ---
 layout: docs
 title: Collapse
+description: Toggle the visibility of content across your project with a few classes and our JavaScript plugins.
 group: components
 ---
 
index d43f5e17d5325ae667c73b91c7353e3371970d41..db26ffe874dc2be78f62f68b2af00ed5426717ff 100644 (file)
@@ -1,6 +1,7 @@
 ---
 layout: docs
 title: Dropdowns
+description: Toggle contextual overlays for displaying lists of links and more with the Bootstrap dropdown plugin.
 group: components
 ---
 
index 09d0d4f8f29ab6476e8c63d5a26d90fb80938965..de66cde98cbf958291fc2dc909b5cc8bc843ac77 100644 (file)
@@ -1,6 +1,7 @@
 ---
 layout: docs
 title: Forms
+description: Examples and usage guidelines for from controls, form layouts, and custom forms.
 group: components
 ---
 
index 21f944d6465c68783b29b2c4617c9809a0ffc220..0082a62b617392fa751615e30628198e96dc8978 100644 (file)
@@ -1,6 +1,7 @@
 ---
 layout: docs
 title: Input group
+description: Extend form controls with the input group.
 group: components
 ---
 
index 9dd3c8294e785d3dfd2a706dddb5e1b56a8728a1..e47becee9c27573abb821af9322dbb002e8342eb 100644 (file)
@@ -1,6 +1,7 @@
 ---
 layout: docs
 title: Jumbotron
+description: Lightweight, flexible component for showcasing hero unit style content.
 group: components
 ---
 
index 8b3b9cd885611211da2bd37664ac18e72fb2306d..7b159bc799b7a0bba98b29f2ee0075822f83232f 100644 (file)
@@ -1,6 +1,7 @@
 ---
 layout: docs
 title: List group
+description: Learn about Bootstrap's list group component for rendering series of related content.
 group: components
 ---
 
index 55a0878b6c0dc4a001e8e58d2d211aa1037172f0..26676cacc338f4061d44a818e464998ee1dc59a6 100644 (file)
@@ -1,6 +1,7 @@
 ---
 layout: docs
 title: Modal
+description: Learn how to use Bootstrap's modals to add dialog prompts to your site.
 group: components
 ---
 
index 10f445e8f04077a238e3f76f08682b4ad4c10c80..6cd770dfd0eb8c7ec9d08f68dc70e1e28309a15c 100644 (file)
@@ -1,6 +1,7 @@
 ---
 layout: docs
 title: Navbar
+description: Documentation and examples for Bootstrap's powerful, responsive navigation header.
 group: components
 ---
 
index 78d476e1c65eb38d249b66312d9da24f80600508..2b76f36e3c3d09cae8c52c4f009ff35d314f95d8 100644 (file)
@@ -1,6 +1,7 @@
 ---
 layout: docs
 title: Navs
+description: Documentation and examples for how to use Bootstrap's included navigation components.
 group: components
 ---
 
index 68c906c77c106335dec7e02b84ecd7c467dce832..7a454a51f9bcf2c72dcb14c32a9c5655d94474d6 100644 (file)
@@ -1,6 +1,7 @@
 ---
 layout: docs
 title: Pagination
+description: Documentation and examples for showing pagination links.
 group: components
 ---
 
index a723f33e3e39a82dda97ea8b372ad8b7a32d816f..bfaaf270eeae975969f484a6d1177aabbad6c694 100644 (file)
@@ -1,6 +1,7 @@
 ---
 layout: docs
 title: Popovers
+description: Documentation and examples for adding Bootstrap popovers to your site.
 group: components
 ---
 
index 5e0abc5fe61792cf0f4870bfbcc71d3cda7af2e5..d604e9e7c32ccd249f77b02a30e2b70e15f99dad 100644 (file)
@@ -1,6 +1,7 @@
 ---
 layout: docs
 title: Progress
+description: Documentation and examples for using Bootstrap progress bars.
 group: components
 ---
 
index 622469aa10ba61087ff295a71a7ef65a31aa385b..52b7c29cdcf80de9a6a5a7ce38108806431a9375 100644 (file)
@@ -1,6 +1,7 @@
 ---
 layout: docs
 title: Scrollspy
+description: Documentation and examples for the scrollspy plugin with Bootstrap's navigation components.
 group: components
 ---
 
index 09608931a2ff985f538c14adc5f7e32eb26226e4..d292cad227ec3441d6dce1be3efc887ab2232e20 100644 (file)
@@ -1,6 +1,7 @@
 ---
 layout: docs
 title: Tags
+description: Documentation and examples for tags, our small label-badge component.
 group: components
 ---
 
index e989307caa31272f1220b0633df0817bf76e9c32..10285701f3be9d1de75abfe1157363f5de40efc7 100644 (file)
@@ -1,6 +1,7 @@
 ---
 layout: docs
 title: Tooltips
+description: Documentation and examples for adding custom Bootstrap tooltips with CSS and JavaScript.
 group: components
 ---
 
index 79059a1d19503d2084335754b4cccb3669bfc3da..a62e0845ff5e5eabcbd80f592d3c05fd19e94476 100644 (file)
@@ -1,6 +1,7 @@
 ---
 layout: docs
 title: Code
+description: Documentation and examples for displaying inline and multiline blocks of code with Bootstrap.
 group: content
 ---
 
index d572705189672e5cf78452a87f6c926a09089a97..c24b5b2c85194a5ee76688a1c5059c18c2a8abb0 100644 (file)
@@ -1,10 +1,11 @@
 ---
 layout: docs
 title: Figures
+description: Documentation and examples for displaying related images and text with the figure component in Bootstrap.
 group: content
 ---
 
-Anytime you need to display a piece of content—like an imagewith an optional caption, consider using a `<figure>`.
+Anytime you need to display a piece of content—like an image with an optional caption, consider using a `<figure>`.
 
 Use the included `.figure` , `.figure-img` and `.figure-caption` classes to provide some baseline styles for the HTML5 `<figure>` and `<figcaption>` elements. Images in figures have no explicit size, so be sure to add the `.img-fluid` class to your `<img>` to make it responsive.
 
index f21010f0fb19cd07c9e3b9dbbf0c640a6bbeda27..48a5dd3d426523c2eba00fa35bb05f1b00b1091e 100644 (file)
@@ -1,6 +1,7 @@
 ---
 layout: docs
 title: Images
+description: Documentation and examples for styling images with Bootstrap.
 group: content
 ---
 
index a6815e9db5994727af76a135f97e77011846f647..1d93cc9ce3a4ccd798d24610403cb172fbf41d97 100644 (file)
@@ -1,6 +1,7 @@
 ---
 layout: docs
 title: Reboot
+description: Documentation and examples for Reboot, Bootstrap's collection of element-specific CSS that builds on Normalize.css.
 group: content
 redirect_from: "/content/"
 ---
index 3b4d58b36907325b2e585fabe3a550cf35fc7a57..f1f32166d06079ddc58507f8c8faefd3700e419a 100644 (file)
@@ -1,6 +1,7 @@
 ---
 layout: docs
 title: Tables
+description: Documentation and examples for styling tables with Bootstrap.
 group: content
 ---
 
index a59f503474d29699521c9bf9375d45000fa39094..f9b5913d23c68745c789e08842cd412b330a4f22 100644 (file)
@@ -1,6 +1,7 @@
 ---
 layout: docs
 title: Typography
+description: Documentation and examples for Bootstrap typography, including global settings, body text, lists, and more.
 group: content
 ---
 
index 43dee35693d1dd275433391d685d0479ac859a5d..19105b8ac7eac793bf57b5658bd775f62724ec34 100644 (file)
@@ -1,6 +1,7 @@
 ---
 layout: docs
 title: Accessibility
+description: Learn how Bootstrap supports common web standards for making sites that are accessibile to those using assistive technology.
 group: getting-started
 ---
 
index 1e67a16e750553cd70b24f54a4b869ce4209dee3..c030a5ac69cfc97ce0fa164f96b1c93769d6130a 100644 (file)
@@ -1,6 +1,7 @@
 ---
 layout: docs
 title: Best practices
+description: Learn about some of the best practices we've gathered from years of working on and using Bootstrap.
 group: getting-started
 ---
 
index a73ec898273407244c9cae1b9410dd0607ef8968..4e0b0c78b2a7f6d42710010883cfc242683f17b2 100644 (file)
@@ -1,6 +1,7 @@
 ---
 layout: docs
 title: Browsers and devices
+description: Learn which browsers and devices are supported by Bootstrap.
 group: getting-started
 ---
 
index 2fe10088b858e1eb8bcf226c33f25afbdbcbc33c..4d684f3ac1594687c042031ffad5888796800446 100644 (file)
@@ -1,6 +1,7 @@
 ---
 layout: docs
 title: Build tools
+description: Details on how to use Bootstrap's included build tools to compile source code, run tests, and more.
 group: getting-started
 ---
 
index ab9c633252a9d3e9cf7a867fec782849cdbc2029..c54cb5eba23db29bb3de2cc3d4d2148aa135eb6e 100644 (file)
@@ -1,6 +1,7 @@
 ---
 layout: docs
 title: Contents
+description: Learn about what's included in Bootstrap's precompiled and source code directories.
 group: getting-started
 ---
 
index be46329befc7b781dbe13d371b89d5d6f7176a36..183dd0abd0b01c9d446962d5eed0eab7d871183e 100644 (file)
@@ -1,6 +1,7 @@
 ---
 layout: docs
 title: Download
+description: Download Bootstrap's compiled CSS and JavaScript, source code, or include it with your favorite package manager.
 group: getting-started
 ---
 
index 9c0f1a87620b0ffbdf90b1c923bdd54c19ddfe6c..b658001feba89dca739019726a82e42fe2829608 100644 (file)
@@ -1,6 +1,7 @@
 ---
 layout: docs
 title: Flexbox
+description: Learn how to enable flexbox support in Bootstrap 4 with the flick of a variable or the swap of a stylesheet.
 group: getting-started
 ---
 
index 8cec71fd6ce0b80f2e5131977b73b318c8081ff0..716f6f3494bdb353bf148eca3746be8c19598c70 100644 (file)
@@ -1,6 +1,7 @@
 ---
 layout: docs
 title: Introduction
+description: Get started with Bootstrap using the Bootstrap CDN and a template starter page.
 group: getting-started
 redirect_from: "/getting-started/"
 ---
index debc4dcf5c7648e0438c9a6f56c6eecd7c841999..b6a38fb7a2c50ef258630515ca3ec2a704754148 100644 (file)
@@ -1,6 +1,7 @@
 ---
 layout: docs
 title: JavaScript
+description: Learn about Bootstrap's JavaScript—how to include it, our data and programmatic API options, and more.
 group: getting-started
 ---
 
index dd7f7fb3d330bb8d06e3724ea8a5bd4d3a9ebebe..81c9c92fcf93920d423aabb6b857267147f37697 100644 (file)
@@ -1,6 +1,7 @@
 ---
 layout: docs
 title: Customization options
+description: Customize Bootstrap with Sass variables, easily toggling global preferences with a quick recompile.
 group: getting-started
 ---
 
index 47c36ff2c3658153eeb1861744c1697e331dfb19..8039ab1ae4b55c1ffad99a1a37d131f92f019a97 100644 (file)
@@ -1,6 +1,5 @@
 ---
 layout: home
-title: Bootstrap &middot; The world's most popular mobile-first and responsive front-end framework.
 ---
 
 <main class="bd-masthead" id="content">
index d15d6fb996c4894610d3907eec790448395e526b..0eae713b36f03f87bac8f365d8fbe292057eb95a 100644 (file)
@@ -1,6 +1,7 @@
 ---
 layout: docs
 title: Flexbox grid system
+description: Documentation and examples for using Bootstrap's optional flexbox grid system.
 group: layout
 ---
 
index 5b68053aaeb0c66cb22289cfbb5d22c89284f90d..ec80156a4193c35d865cb3cfd9a13543784d3009 100644 (file)
@@ -1,6 +1,7 @@
 ---
 layout: docs
 title: Grid system
+description: Documentation and examples for using Bootstrap's powerful, responsive, and mobile-first grid system.
 group: layout
 ---
 
index fcb89a3b5ad1e86150086738a4e21b9e1eca3ebf..95dbceb40d1c52f614b26df22c061046c33e8aa8 100644 (file)
@@ -1,6 +1,7 @@
 ---
 layout: docs
 title: Media object
+description: Documentation and examples for Bootstrap's media object to construct highly repetitive components like blog comments, tweets, and the like.
 group: layout
 ---
 
index 81cdecf6083ede84e09c49c8d6275e793b622ae9..3e6c7e7e05ca676fd54e61a68952a15ab6d89d13 100644 (file)
@@ -1,6 +1,7 @@
 ---
 layout: docs
 title: Overview
+description: Components and options for laying out your Bootstrap project, including wrapping containers, a powerful grid system, a flexible media object, and responsive utility classes.
 group: layout
 redirect_from: "/layout/"
 ---
index 2a44fd589e88a1453fd37f1ac0c925a7cfcb5b1f..4334eb4d6d000f3b672ed460dae4bd7e68589a8f 100644 (file)
@@ -1,6 +1,7 @@
 ---
 layout: docs
 title: Responsive utilities
+description: Use responsive display utility classes for showing and hiding content by device, via media query.
 group: layout
 ---