Skip to content

Commit ac95daa

Browse files
committed
docs: update theme
1 parent 115a364 commit ac95daa

File tree

3 files changed

+34
-22
lines changed

3 files changed

+34
-22
lines changed

docs/layouts/_default/docs.html

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,15 @@
33
<main class="docs-main order-1">
44
<div class="docs-intro ps-lg-4">
55
{{ partial "breadcrumb" . }}
6-
{{ if .Page.Params.pro_component }}
7-
<div class="bg-danger bg-opacity-10 border-start border-start-5 border-start-danger p-4 pb-3 mb-5">
8-
<h3 class="mb-4">CoreUI PRO Component</h3>
9-
<p>
10-
To use this component you must have a CoreUI PRO license. Buy the <a href="https://coreui.io/pricing/?framework=bootstrap&docs=coreui-banner-pro">CoreUI PRO</a> and get access to all PRO components, features, templates, and dedicated support.
11-
</p>
6+
{{ partial "banner" . }}
7+
{{ if .Page.Params.bootstrap }}
8+
<div class="d-flex flex-column">
9+
<h1 class="order-2 h5 mb-4 text-body-secondary" id="content">Bootstrap 5 {{ .Title | markdownify | title }}</h1>
10+
<h2 class="docs-title order-1 h1">{{ .Title | markdownify }}</h2>
1211
</div>
1312
{{ else }}
14-
<div class="bg-info bg-opacity-10 border-start border-start-5 border-start-info p-4 pb-3 mb-5">
15-
<h3 class="mb-4">Support CoreUI Development</h3>
16-
<p>
17-
CoreUI is an MIT-licensed open source project and is completely free to use. However, the amount of effort needed to maintain and develop new features for the project is not sustainable without proper financial backing.
18-
</p>
19-
<p>
20-
You can support our Open Source software development in the following ways:
21-
</p>
22-
<ul>
23-
<li>Buy the <a href="https://coreui.io/pricing/?framework=bootstrap&docs=coreui-banner-free">CoreUI PRO</a> and get access to all PRO components, features, templates, and dedicated support.</li>
24-
<li><a href="https://opencollective.com/coreui" target="_blank">Became a sponsor</a>, and get your logo on BACKERS.md/README.md files or each site of this documentation</li>
25-
<li>Give us a star ⭐️ on <a href="https://github.com/coreui/coreui" target="_blank">Github</a>.</li>
26-
</ul>
27-
</div>
28-
{{ end }}
2913
<h1 class="docs-title" id="content">{{ .Title | markdownify }}</h1>
14+
{{ end }}
3015
<p class="docs-lead">{{ .Page.Params.Description | markdownify }}</p>
3116
{{ partial "ads" . }}
3217
{{ if .Page.Params.other_frameworks }}

docs/layouts/partials/banner.html

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{{ if .Page.Params.pro_component }}
2+
<div class="bg-danger bg-opacity-10 border-start border-start-5 border-start-danger p-4 pb-3 mb-5">
3+
<h3 class="mb-4">CoreUI PRO Component</h3>
4+
<p>
5+
To use this component you must have a CoreUI PRO license. Buy the <a href="https://coreui.io/pricing/?framework=bootstrap&docs=coreui-banner-pro">CoreUI PRO</a> and get access to all PRO components, features, templates, and dedicated support.
6+
</p>
7+
</div>
8+
{{ else }}
9+
<div class="bg-info bg-opacity-10 border-start border-start-5 border-start-info p-4 pb-3 mb-5">
10+
<h3 class="mb-4">Support CoreUI Development</h3>
11+
<p>
12+
CoreUI is an MIT-licensed open source project and is completely free to use. However, the amount of effort needed to maintain and develop new features for the project is not sustainable without proper financial backing.
13+
</p>
14+
<p>
15+
You can support our Open Source software development in the following ways:
16+
</p>
17+
<ul>
18+
<li>Buy the <a href="https://coreui.io/pricing/?framework=bootstrap&docs=coreui-banner-free">CoreUI PRO</a> and get access to all PRO components, features, templates, and dedicated support.</li>
19+
<li><a href="https://opencollective.com/coreui" target="_blank">Became a sponsor</a>, and get your logo on BACKERS.md/README.md files or each site of this documentation</li>
20+
<li>Give us a star ⭐️ on <a href="https://github.com/coreui/coreui" target="_blank">Github</a>.</li>
21+
</ul>
22+
</div>
23+
{{ end }}

docs/layouts/partials/head.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@
77
<meta name="docsearch:language" content="en">
88
<meta name="docsearch:version" content="{{ .Site.Params.docs_version }}">
99

10-
<title>{{ if .IsHome }}{{ .Site.Title | markdownify }} · {{ .Site.Params.description | markdownify }}{{ else }}{{ .Title | markdownify }} · {{ .Site.Title | markdownify }}{{ end }}</title>
10+
{{ if .Page.Params.bootstrap }}
11+
<title>Bootstrap {{ .Title | markdownify | title }} - extended examples and tutorials</title>
12+
{{ else }}
13+
<title>{{ .Title | markdownify }} · {{ .Site.Title | markdownify }}</title>
14+
{{ end }}
1115

1216
<link rel="canonical" href="{{ .Permalink }}">
1317

0 commit comments

Comments
 (0)