mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-11 18:02:28 +03:00
Add an examples layout.
Reduces duplication and makes maintenance easier.
This commit is contained in:
@@ -1,12 +1,16 @@
|
||||
<!-- Bootstrap core CSS -->
|
||||
{% if jekyll.environment == "production" %}
|
||||
{%- if jekyll.environment == "production" %}
|
||||
<link href="{{ site.baseurl }}/docs/{{ site.docs_version }}/dist/css/bootstrap.min.css" rel="stylesheet" integrity="{{ site.cdn.css_hash }}" crossorigin="anonymous">
|
||||
{% else %}
|
||||
<link href="{{ site.baseurl }}/docs/{{ site.docs_version }}/dist/css/bootstrap.css" rel="stylesheet">
|
||||
{% endif %}
|
||||
{% endif -%}
|
||||
|
||||
{%- if page.layout == "docs" or page.layout != "examples" -%}
|
||||
<!-- Documentation extras -->
|
||||
{% if page.layout == "docs" %}
|
||||
<link href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" rel="stylesheet">
|
||||
{% endif %}
|
||||
{% if page.layout != "examples" %}
|
||||
<link href="{{ site.baseurl }}/docs/{{ site.docs_version }}/assets/css/docs.min.css" rel="stylesheet">
|
||||
{% endif %}
|
||||
{%- endif -%}
|
||||
|
||||
Reference in New Issue
Block a user