mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-24 22:16:38 +02:00
Make use of jekyll-toc's no_toc_section
class.
Requires jekyll-toc v0.8.0.
This commit is contained in:
2
Gemfile
2
Gemfile
@@ -4,5 +4,5 @@ group :development, :test do
|
|||||||
gem 'jekyll', '~> 3.8.4'
|
gem 'jekyll', '~> 3.8.4'
|
||||||
gem 'jekyll-redirect-from', '~> 0.14.0'
|
gem 'jekyll-redirect-from', '~> 0.14.0'
|
||||||
gem 'jekyll-sitemap', '~> 1.2.0'
|
gem 'jekyll-sitemap', '~> 1.2.0'
|
||||||
gem 'jekyll-toc', '~> 0.7.1'
|
gem 'jekyll-toc', '~> 0.8.0'
|
||||||
end
|
end
|
||||||
|
@@ -35,7 +35,7 @@ GEM
|
|||||||
sass (~> 3.4)
|
sass (~> 3.4)
|
||||||
jekyll-sitemap (1.2.0)
|
jekyll-sitemap (1.2.0)
|
||||||
jekyll (~> 3.3)
|
jekyll (~> 3.3)
|
||||||
jekyll-toc (0.7.1)
|
jekyll-toc (0.8.0)
|
||||||
nokogiri (~> 1.7)
|
nokogiri (~> 1.7)
|
||||||
jekyll-watch (2.1.1)
|
jekyll-watch (2.1.1)
|
||||||
listen (~> 3.0)
|
listen (~> 3.0)
|
||||||
@@ -74,7 +74,7 @@ DEPENDENCIES
|
|||||||
jekyll (~> 3.8.4)
|
jekyll (~> 3.8.4)
|
||||||
jekyll-redirect-from (~> 0.14.0)
|
jekyll-redirect-from (~> 0.14.0)
|
||||||
jekyll-sitemap (~> 1.2.0)
|
jekyll-sitemap (~> 1.2.0)
|
||||||
jekyll-toc (~> 0.7.1)
|
jekyll-toc (~> 0.8.0)
|
||||||
|
|
||||||
BUNDLED WITH
|
BUNDLED WITH
|
||||||
1.16.6
|
1.16.6
|
||||||
|
@@ -4,6 +4,6 @@ where content is a capture with the content
|
|||||||
and type is one of: info (default), danger, warning
|
and type is one of: info (default), danger, warning
|
||||||
{%- endcomment -%}
|
{%- endcomment -%}
|
||||||
{%- assign css_class = include.type | default: "info" -%}
|
{%- assign css_class = include.type | default: "info" -%}
|
||||||
<div class="bd-callout bd-callout-{{ css_class }}">
|
<div class="bd-callout bd-callout-{{ css_class }} no_toc_section">
|
||||||
{{- include.content | markdownify -}}
|
{{- include.content | markdownify -}}
|
||||||
</div>
|
</div>
|
||||||
|
@@ -11,7 +11,7 @@ optional: hide_markup - disabled (default)
|
|||||||
{%- assign preview_class = include.class -%}
|
{%- assign preview_class = include.class -%}
|
||||||
|
|
||||||
{%- if include.hide_preview == null -%}
|
{%- if include.hide_preview == null -%}
|
||||||
<div{% if preview_id %} id="{{ preview_id }}"{% endif %} class="bd-example{% if preview_class %} {{ preview_class }}{% endif %}">
|
<div{% if preview_id %} id="{{ preview_id }}"{% endif %} class="bd-example no_toc_section{% if preview_class %} {{ preview_class }}{% endif %}">
|
||||||
{{- include.content -}}
|
{{- include.content -}}
|
||||||
</div>
|
</div>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
@@ -23,10 +23,6 @@
|
|||||||
|
|
||||||
ul {
|
ul {
|
||||||
padding-left: 1rem;
|
padding-left: 1rem;
|
||||||
|
|
||||||
ul {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user