Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <markdotto@gmail.com>2022-07-26 01:18:33 +0300
committerMark Otto <markdotto@gmail.com>2022-07-26 01:18:33 +0300
commite75dc7bc24ed924216bca07f6bc14745a738ae6e (patch)
tree3e8c499ca52e93925d649a0b3dcbb2b810c64f6d
parentca603ae4c3a56467e3eb3568fd58d146bbe0ece2 (diff)
Remove social_image_path, use inline conditions for social imagescustom-social-images
-rw-r--r--config.yml5
-rw-r--r--site/layouts/partials/social.html14
2 files changed, 4 insertions, 15 deletions
diff --git a/config.yml b/config.yml
index 5771809577..9ac79b08e5 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/layouts/partials/social.html b/site/layouts/partials/social.html
index db3451bb49..2226c386c4 100644
--- a/site/layouts/partials/social.html
+++ b/site/layouts/partials/social.html
@@ -3,12 +3,7 @@
<meta name="twitter:creator" content="@{{ .Site.Params.twitter }}">
<meta name="twitter:title" content="{{ .Title | markdownify }}">
<meta name="twitter:description" content="{{ .Page.Params.description | default .Site.Params.description | markdownify }}">
-
-{{ if .Page.Params.thumbnail }}
-<meta name="twitter:image" content="/docs/{{ .Site.Params.docs_version }}/assets/img/{{ .Page.Params.thumbnail }}">
-{{ else }}
-<meta name="twitter:image" content="{{ .Site.Params.social_image_path | absURL }}">
-{{ end }}
+<meta name="twitter:image" content="/docs/{{ .Site.Params.docs_version }}/assets/{{ if .Page.Params.thumbnail }}img/{{ .Page.Params.thumbnail }}{{else}}brand/bootstrap-social.png{{end}}">
<meta property="og:url" content="{{ .Permalink }}">
<meta property="og:title" content="{{ .Title | markdownify }}">
@@ -17,9 +12,4 @@
<meta property="og:image:type" content="image/png">
<meta property="og:image:width" content="1000">
<meta property="og:image:height" content="500">
-
-{{ if .Page.Params.thumbnail }}
-<meta property="og:image" content="/docs/{{ .Site.Params.docs_version }}/assets/img/{{ .Page.Params.thumbnail }}">
-{{ else }}
-<meta property="og:image" content="{{ .Site.Params.social_image_path | absURL }}">
-{{ end }}
+<meta property="og:image" content="/docs/{{ .Site.Params.docs_version }}/assets/{{ if .Page.Params.thumbnail }}img/{{ .Page.Params.thumbnail }}{{else}}brand/bootstrap-social.png{{end}}">