框架重构
清除多余的业务
This commit is contained in:
22
WebFirst/wwwroot/vendors/bootstrap/site/_layouts/default.html
vendored
Normal file
22
WebFirst/wwwroot/vendors/bootstrap/site/_layouts/default.html
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
{% include header.html %}
|
||||
</head>
|
||||
<body>
|
||||
{% include skippy.html %}
|
||||
|
||||
{% include docs-navbar.html %}
|
||||
|
||||
{% if page.layout == "simple" %}
|
||||
{{ content }}
|
||||
{% else %}
|
||||
<main id="content" role="main">
|
||||
{{ content }}
|
||||
</main>
|
||||
{% endif %}
|
||||
|
||||
{% include footer.html %}
|
||||
{% include scripts.html %}
|
||||
</body>
|
||||
</html>
|
||||
34
WebFirst/wwwroot/vendors/bootstrap/site/_layouts/docs.html
vendored
Normal file
34
WebFirst/wwwroot/vendors/bootstrap/site/_layouts/docs.html
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
{% include header.html %}
|
||||
</head>
|
||||
<body>
|
||||
{% include skippy.html %}
|
||||
|
||||
{% include docs-navbar.html %}
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="row flex-xl-nowrap">
|
||||
<div class="col-12 col-md-3 col-xl-2 bd-sidebar">
|
||||
{% include docs-sidebar.html %}
|
||||
</div>
|
||||
|
||||
{% if page.toc %}
|
||||
<div class="d-none d-xl-block col-xl-2 bd-toc">
|
||||
{{ content | toc_only }}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<main class="col-12 col-md-9 col-xl-8 py-md-3 pl-md-5 bd-content" role="main">
|
||||
<h1 class="bd-title" id="content">{{ page.title | smartify }}</h1>
|
||||
<p class="bd-lead">{{ page.description | smartify }}</p>
|
||||
{% include ads.html %}
|
||||
{{ content }}
|
||||
</main>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% include scripts.html %}
|
||||
</body>
|
||||
</html>
|
||||
55
WebFirst/wwwroot/vendors/bootstrap/site/_layouts/examples.html
vendored
Normal file
55
WebFirst/wwwroot/vendors/bootstrap/site/_layouts/examples.html
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
<!doctype html>
|
||||
<html lang="en"{% if page.html_class %} class="{{ page.html_class }}"{% endif %}>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<meta name="description" content="">
|
||||
<meta name="author" content="{{ site.authors }}">
|
||||
<meta name="generator" content="Jekyll v{{ jekyll.version }}">
|
||||
<title>{{ page.title | smartify }} · {{ site.title | smartify }}</title>
|
||||
|
||||
<link rel="canonical" href="{{ site.url | append: page.url }}">
|
||||
|
||||
{% include stylesheet.html %}
|
||||
|
||||
<style>
|
||||
.bd-placeholder-img {
|
||||
font-size: 1.125rem;
|
||||
text-anchor: middle;
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.bd-placeholder-img-lg {
|
||||
font-size: 3.5rem;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
{%- for css in page.extra_css %}
|
||||
<!-- Custom styles for this template -->
|
||||
<link href="{{ css }}" rel="stylesheet">
|
||||
{%- endfor %}
|
||||
</head>
|
||||
<body{% if page.body_class %} class="{{ page.body_class }}"{% endif %}>
|
||||
{{ content }}
|
||||
|
||||
{%- if page.include_js != false -%}
|
||||
<script src="{{ site.cdn.jquery }}" integrity="{{ site.cdn.jquery_hash }}" crossorigin="anonymous"></script>
|
||||
<script>window.jQuery || document.write('<script src="{{ site.baseurl }}/docs/{{ site.docs_version }}/assets/js/vendor/jquery-slim.min.js"><\/script>')</script>
|
||||
|
||||
{%- if jekyll.environment == "production" -%}
|
||||
<script src="{{ site.baseurl }}/docs/{{ site.docs_version }}/dist/js/bootstrap.bundle.min.js" integrity="{{ site.cdn.js_bundle_hash }}" crossorigin="anonymous"></script>
|
||||
{%- else -%}
|
||||
<script src="{{ site.baseurl }}/docs/{{ site.docs_version }}/dist/js/bootstrap.bundle.js"></script>
|
||||
{%- endif -%}
|
||||
|
||||
{%- for js in page.extra_js %}
|
||||
<script src="{{ js }}"></script>
|
||||
{%- endfor %}
|
||||
{%- endif -%}
|
||||
</body>
|
||||
</html>
|
||||
16
WebFirst/wwwroot/vendors/bootstrap/site/_layouts/home.html
vendored
Normal file
16
WebFirst/wwwroot/vendors/bootstrap/site/_layouts/home.html
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
{% include header.html %}
|
||||
</head>
|
||||
<body>
|
||||
{% include skippy.html %}
|
||||
|
||||
{% include docs-navbar.html %}
|
||||
|
||||
{{ content }}
|
||||
|
||||
{% include footer.html %}
|
||||
{% include scripts.html %}
|
||||
</body>
|
||||
</html>
|
||||
18
WebFirst/wwwroot/vendors/bootstrap/site/_layouts/simple.html
vendored
Normal file
18
WebFirst/wwwroot/vendors/bootstrap/site/_layouts/simple.html
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
layout: default
|
||||
---
|
||||
|
||||
<header class="d-flex flex-column flex-md-row align-items-md-center p-5 bg-light">
|
||||
<div class="pt-md-3 pb-md-4">
|
||||
<h1 class="bd-title mt-0">{{ page.title | smartify }}</h1>
|
||||
<p class="bd-lead">{{ page.description | smartify }}</p>
|
||||
{%- if page.title == "Examples" -%}
|
||||
<a href="{{ site.download.source }}" class="btn btn-lg btn-bd-primary" onclick="ga('send', 'event', 'Examples', 'Hero', 'Download');">Download source code</a>
|
||||
{%- endif -%}
|
||||
</div>
|
||||
{% include ads.html %}
|
||||
</header>
|
||||
|
||||
<main class="bd-content p-5" id="content" role="main">
|
||||
{{ content }}
|
||||
</main>
|
||||
Reference in New Issue
Block a user