From 501faa2c966632f31b919faf3fa78e9adbe6fe5b Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Tue, 26 Jul 2022 09:25:47 -0700 Subject: Simplify social images and add ability to set per-page images (#36804) * Simplify social images and add ability to set per-page images - Removes the homepage summary layout in favor of the larger image card (makes it more consistent with other pages) - Reuses new thumbnails for Webpack, Parcel, and Vite guides to add their new social images * Update default social card * Change description to subtitle, add longer description to match homepage * Remove social_image_path, use inline conditions for social images --- config.yml | 5 ++--- site/content/docs/5.2/getting-started/parcel.md | 1 + site/content/docs/5.2/getting-started/vite.md | 1 + site/content/docs/5.2/getting-started/webpack.md | 1 + site/layouts/partials/header.html | 2 +- site/layouts/partials/social.html | 8 +++----- .../docs/5.2/assets/brand/bootstrap-social.png | Bin 54961 -> 726245 bytes 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/config.yml b/config.yml index 744c9f095..bb71b8d0c 100644 --- a/config.yml +++ b/config.yml @@ -48,10 +48,9 @@ module: target: static/favicon.ico params: - description: "The most popular HTML, CSS, and JS library in the world." + subtitle: "The most popular HTML, CSS, and JS library in the world." + description: "Powerful, extensible, and feature-packed frontend toolkit. Build and customize with Sass, utilize prebuilt grid system and components, and bring projects to life with powerful JavaScript plugins." authors: "Mark Otto, Jacob Thornton, and Bootstrap contributors" - social_image_path: /docs/5.2/assets/brand/bootstrap-social.png - social_logo_path: /docs/5.2/assets/brand/bootstrap-social-logo.png current_version: "5.2.0" current_ruby_version: "5.2.0" diff --git a/site/content/docs/5.2/getting-started/parcel.md b/site/content/docs/5.2/getting-started/parcel.md index 674a39837..d28f92384 100644 --- a/site/content/docs/5.2/getting-started/parcel.md +++ b/site/content/docs/5.2/getting-started/parcel.md @@ -4,6 +4,7 @@ title: "Bootstrap & Parcel" description: The official guide for how to include and bundle Bootstrap's CSS and JavaScript in your project using Parcel. group: getting-started toc: true +thumbnail: guides/bootstrap-parcel@2x.png --- diff --git a/site/content/docs/5.2/getting-started/vite.md b/site/content/docs/5.2/getting-started/vite.md index ca71bbe31..ee08379a7 100644 --- a/site/content/docs/5.2/getting-started/vite.md +++ b/site/content/docs/5.2/getting-started/vite.md @@ -4,6 +4,7 @@ title: "Bootstrap & Vite" description: The official guide for how to include and bundle Bootstrap's CSS and JavaScript in your project using Vite. group: getting-started toc: true +thumbnail: guides/bootstrap-vite@2x.png --- diff --git a/site/content/docs/5.2/getting-started/webpack.md b/site/content/docs/5.2/getting-started/webpack.md index e314ecf6a..ca104f98c 100644 --- a/site/content/docs/5.2/getting-started/webpack.md +++ b/site/content/docs/5.2/getting-started/webpack.md @@ -4,6 +4,7 @@ title: "Bootstrap & Webpack" description: The official guide for how to include and bundle Bootstrap's CSS and JavaScript in your project using Webpack. group: getting-started toc: true +thumbnail: guides/bootstrap-webpack@2x.png --- diff --git a/site/layouts/partials/header.html b/site/layouts/partials/header.html index a592cdccb..ceeb8b546 100644 --- a/site/layouts/partials/header.html +++ b/site/layouts/partials/header.html @@ -7,7 +7,7 @@ -{{ if .IsHome }}{{ .Site.Title | markdownify }} · {{ .Site.Params.description | markdownify }}{{ else }}{{ .Title | markdownify }} · {{ .Site.Title | markdownify }} v{{ .Site.Params.docs_version }}{{ end }} +{{ if .IsHome }}{{ .Site.Title | markdownify }} · {{ .Site.Params.subtitle | markdownify }}{{ else }}{{ .Title | markdownify }} · {{ .Site.Title | markdownify }} v{{ .Site.Params.docs_version }}{{ end }} diff --git a/site/layouts/partials/social.html b/site/layouts/partials/social.html index a63f6caee..2226c386c 100644 --- a/site/layouts/partials/social.html +++ b/site/layouts/partials/social.html @@ -1,17 +1,15 @@ -{{ "" | safeHTML }} - + - + -{{ "" | safeHTML }} - + diff --git a/site/static/docs/5.2/assets/brand/bootstrap-social.png b/site/static/docs/5.2/assets/brand/bootstrap-social.png index c7adc6f85..f027ee8e6 100644 Binary files a/site/static/docs/5.2/assets/brand/bootstrap-social.png and b/site/static/docs/5.2/assets/brand/bootstrap-social.png differ -- cgit v1.2.3