1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-21 04:41:36 +02:00

Switch to Hugo.

No more Ruby dependency and most important more than 10 times less build time (at least on Windows)!
This commit is contained in:
XhmikosR
2019-01-08 18:33:28 +02:00
parent 6aa475c82e
commit d95d30029f
310 changed files with 3874 additions and 3186 deletions

View File

@@ -0,0 +1,52 @@
<!doctype html>
<html lang="en"{{ with .Page.Params.html_class }} class="{{ . }}"{{ end }}>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="{{ .Site.Params.authors }}">
<meta name="generator" content="Hugo {{ .Hugo.Version }}">
<title>{{ .Page.Title | markdownify }} · {{ .Site.Title | markdownify }}</title>
<link rel="canonical" href="{{ .Permalink }}">
{{ partial "stylesheet" . }}
<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>
{{ range .Page.Params.extra_css }}
{{ "<!-- Custom styles for this template -->" | safeHTML }}
<link href="{{ . }}" rel="stylesheet">
{{- end }}
</head>
<body{{ with .Page.Params.body_class }} class="{{ . }}"{{ end }}>
{{ .Content }}
{{ if ne .Page.Params.include_js false }}
{{ if eq (getenv "HUGO_ENV") "production" }}
<script src="/docs/{{ .Site.Params.docs_version }}/dist/js/bootstrap.bundle.min.js" integrity="{{ .Site.Params.cdn.js_bundle_hash }}" crossorigin="anonymous"></script>
{{ else }}
<script src="/docs/{{ .Site.Params.docs_version }}/dist/js/bootstrap.bundle.js"></script>
{{ end }}
{{ range .Page.Params.extra_js }}
<script src="{{ . }}"></script>
{{- end }}
{{ end }}
</body>
</html>