1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-24 06:03:10 +02:00

Make use of jekyll-toc's no_toc_section class.

Requires jekyll-toc v0.8.0.
This commit is contained in:
XhmikosR
2018-10-14 08:43:05 +03:00
parent 79db264910
commit 700f74cebd
5 changed files with 5 additions and 9 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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>

View File

@@ -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 -%}

View File

@@ -23,10 +23,6 @@
ul { ul {
padding-left: 1rem; padding-left: 1rem;
ul {
display: none;
}
} }
} }