From 22d3cb59494aca2256b36f88e03d9724fe96626b Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Wed, 20 Jul 2022 12:06:04 -0700 Subject: [PATCH] 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 --- .../content/docs/5.2/getting-started/parcel.md | 1 + site/content/docs/5.2/getting-started/vite.md | 1 + .../docs/5.2/getting-started/webpack.md | 1 + site/layouts/partials/social.html | 18 +++++++++++++----- 4 files changed, 16 insertions(+), 5 deletions(-) diff --git a/site/content/docs/5.2/getting-started/parcel.md b/site/content/docs/5.2/getting-started/parcel.md index 674a39837bcd..d28f92384fad 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 ca71bbe31d5c..ee08379a7c21 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 e314ecf6a2a9..ca104f98c1a5 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/social.html b/site/layouts/partials/social.html index a63f6caee84e..db3451bb495c 100644 --- a/site/layouts/partials/social.html +++ b/site/layouts/partials/social.html @@ -1,17 +1,25 @@ -{{ "" | safeHTML }} - + - -{{ "" | safeHTML }} +{{ if .Page.Params.thumbnail }} + +{{ else }} + +{{ end }} + - + +{{ if .Page.Params.thumbnail }} + +{{ else }} + +{{ end }}