Skip to content

Commit 8c8aa82

Browse files
committed
Fixes
1 parent 0068f88 commit 8c8aa82

10 files changed

+39
-46
lines changed

docs/content/docs.md

-1
Original file line numberDiff line numberDiff line change
@@ -227,4 +227,3 @@ Found another issue with SVGs we should note? Please open [an issue]({{< param r
227227
{{< /md >}}
228228
</div>
229229
</div>
230-

docs/content/icons/hand-thumbs-down-fill.md

-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,4 @@ tags:
66
- hand
77
- pointer
88
- thumbs-down
9-
- "-1"
109
---

docs/content/icons/hand-thumbs-down.md

-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,4 @@ tags:
66
- hand
77
- pointer
88
- thumbs-down
9-
- "-1"
109
---

docs/content/icons/hand-thumbs-up-fill.md

-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,4 @@ tags:
66
- hand
77
- pointer
88
- thumbs-up
9-
- "+1"
109
---

docs/content/icons/hand-thumbs-up.md

-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,4 @@ tags:
66
- hand
77
- pointer
88
- thumbs-up
9-
- "+1"
109
---

docs/layouts/_default/home.html

+7-7
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<input class="form-control search mb-0" id="search" type="search" placeholder="Search icons..." autocomplete="off">
1212
</form>
1313

14-
<h6><a href="/docs">Documentation</a></h6>
14+
<h6><a href="{{ .Site.Params.main }}/docs/">Documentation</a></h6>
1515
<ul class="nav nav-pills flex-column bd-sidebar-list">
1616
<li class="nav-item">
1717
<a class="nav-link" href="">Install</a>
@@ -23,16 +23,16 @@ <h6><a href="/docs">Documentation</a></h6>
2323
<a class="nav-link" href="">Styling</a>
2424
</li>
2525
</ul>
26-
<h6><a href="/categories">Categories</a></h6>
26+
<h6><a href="/categories/">Categories</a></h6>
2727
<ul id="categories" class="nav nav-pills flex-column bd-sidebar-list">
28-
{{ range $taxonomyname, $taxonomy := .Site.Taxonomies }}
29-
{{ if eq "categories" $taxonomyname }}
30-
{{ range $key, $value := $taxonomy }}
28+
{{ range $taxonomyName, $taxonomy := .Site.Taxonomies -}}
29+
{{ if eq "categories" $taxonomyName -}}
30+
{{ range $key, $value := $taxonomy -}}
3131
<li class="nav-item">
3232
<a class="nav-link" href="#{{ $key }}">{{ $key | humanize }}</a>
3333
</li>
34-
{{ end }}
35-
{{ end }}
34+
{{ end -}}
35+
{{ end -}}
3636
{{ end }}
3737
</ul>
3838
</div>

docs/layouts/_default/taxonomy.html

+6-7
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,16 @@
88

99
<h1 class="h2 mb-4">All {{ .Type }}</h1>
1010
<div class="grid category-grid">
11-
{{ range .Data.Pages }}
11+
{{ range .Data.Pages -}}
1212
<a class="category-grid-item d-block text-decoration-none link-dark hover-link-primary" href="{{ .Permalink }}">
1313
<div class="d-flex flex-wrap justify-content-center p-3 mb-3 text-dark border rounded-3 fs-2 hover-border-primary hover-shadow-primary" style="min-height: 140px">
14-
{{ range first 10 (where .Data.Pages ".Params.categories" "intersect" (slice .Title)) }}
15-
{{ $name := .Title | urlize }}
14+
{{ range first 10 (where .Data.Pages ".Params.categories" "intersect" (slice .Title)) -}}
15+
{{- $name := .Title | urlize -}}
1616
<i class="bi bi-{{ $name }}"></i>
17-
{{ end }}
17+
{{ end -}}
1818
</div>
1919
<h2 class="fs-5">{{ .Title }}</h2>
2020
</a>
21-
{{ end }}
21+
{{ end -}}
2222
</div>
23-
{{ end }}
24-
23+
{{ end -}}

docs/layouts/icons/single.html

+6-6
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ <h1>{{ .Title }}</h1>
1414
<ul class="list-unstyled mb-3 mb-md-0">
1515
<li>
1616
<strong>Category:</strong>
17-
{{ range .Params.categories }}
18-
<a href="/categories/{{ . | urlize}}">{{ . }}</a>
19-
{{ end }}
17+
{{ range .Params.categories -}}
18+
<a href="/categories/{{ . | urlize }}/">{{ . }}</a>
19+
{{ end -}}
2020
</li>
2121
<li>
2222
<strong>Tags:</strong>
23-
{{ range .Params.tags }}
24-
<a href="/tags/{{ . | urlize}}">{{ . }}</a>
25-
{{ end }}
23+
{{ range .Params.tags -}}
24+
<a href="/tags/{{ . | urlize }}/">{{ . }}</a>
25+
{{ end -}}
2626
</li>
2727
</ul>
2828
{{- end }}

docs/layouts/partials/footer.html

+9-9
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@
77
<span class="fs-5">Bootstrap</span>
88
</a>
99
<ul class="list-unstyled small text-muted">
10-
<li class="mb-2">Designed and built with all the love in the world by the <a href="/docs/{{ .Site.Params.docs_version }}/about/team/">Bootstrap team</a> with the help of <a href="{{ .Site.Params.repo }}/graphs/contributors">our contributors</a>.</li>
10+
<li class="mb-2">Designed and built with all the love in the world by the <a href="{{ .Site.Params.main }}/docs/{{ .Site.Params.docs_version }}/about/team/">Bootstrap team</a> with the help of <a href="{{ .Site.Params.repo }}/graphs/contributors">our contributors</a>.</li>
1111
<li class="mb-2">Code licensed <a href="{{ .Site.Params.repo }}/blob/main/LICENSE.md" target="_blank" rel="license noopener">MIT</a>.</li>
1212
<li class="mb-2">Currently v{{ .Site.Params.version }}.</li>
1313
</ul>
1414
</div>
1515
<div class="col-6 col-lg-2 offset-lg-1 mb-3">
1616
<h5>Links</h5>
1717
<ul class="list-unstyled">
18-
<li class="mb-2"><a href="/">Home</a></li>
19-
<li class="mb-2"><a href="/docs/{{ .Site.Params.docs_version }}/">Docs</a></li>
20-
<li class="mb-2"><a href="/docs/{{ .Site.Params.docs_version }}/examples/">Examples</a></li>
18+
<li class="mb-2"><a href="{{ .Site.Params.main }}">Home</a></li>
19+
<li class="mb-2"><a href="{{ .Site.Params.main }}/docs/{{ .Site.Params.docs_version }}/">Docs</a></li>
20+
<li class="mb-2"><a href="{{ .Site.Params.main }}/docs/{{ .Site.Params.docs_version }}/examples/">Examples</a></li>
2121
<li class="mb-2"><a href="{{ .Site.Params.icons }}">Icons</a></li>
2222
<li class="mb-2"><a href="{{ .Site.Params.themes }}">Themes</a></li>
2323
<li class="mb-2"><a href="{{ .Site.Params.blog }}">Blog</a></li>
@@ -27,11 +27,11 @@ <h5>Links</h5>
2727
<div class="col-6 col-lg-2 mb-3">
2828
<h5>Guides</h5>
2929
<ul class="list-unstyled">
30-
<li class="mb-2"><a href="/docs/{{ .Site.Params.docs_version }}/getting-started/">Getting started</a></li>
31-
<li class="mb-2"><a href="/docs/{{ .Site.Params.docs_version }}/examples/starter-template/">Starter template</a></li>
32-
<li class="mb-2"><a href="/docs/{{ .Site.Params.docs_version }}/getting-started/webpack/">Webpack</a></li>
33-
<li class="mb-2"><a href="/docs/{{ .Site.Params.docs_version }}/getting-started/parcel/">Parcel</a></li>
34-
<li class="mb-2"><a href="/docs/{{ .Site.Params.docs_version }}/getting-started/vite/">Vite</a></li>
30+
<li class="mb-2"><a href="{{ .Site.Params.main }}/docs/{{ .Site.Params.docs_version }}/getting-started/">Getting started</a></li>
31+
<li class="mb-2"><a href="{{ .Site.Params.main }}/docs/{{ .Site.Params.docs_version }}/examples/starter-template/">Starter template</a></li>
32+
<li class="mb-2"><a href="{{ .Site.Params.main }}/docs/{{ .Site.Params.docs_version }}/getting-started/webpack/">Webpack</a></li>
33+
<li class="mb-2"><a href="{{ .Site.Params.main }}/docs/{{ .Site.Params.docs_version }}/getting-started/parcel/">Parcel</a></li>
34+
<li class="mb-2"><a href="{{ .Site.Params.main }}/docs/{{ .Site.Params.docs_version }}/getting-started/vite/">Vite</a></li>
3535
</ul>
3636
</div>
3737
<div class="col-6 col-lg-2 mb-3">

docs/layouts/partials/icons.html

+11-12
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,28 @@
11
<div class="my-5">
22
<ul class="list-unstyled list">
3-
{{ range $taxonomyname, $taxonomy := .Site.Taxonomies }}
4-
{{ if eq "categories" $taxonomyname }}
5-
{{ range $key, $value := $taxonomy }}
3+
{{ range $taxonomyName, $taxonomy := .Site.Taxonomies -}}
4+
{{ if eq "categories" $taxonomyName -}}
5+
{{ range $key, $value := $taxonomy -}}
66
<li class="my-5" id="{{ $key }}">
77
<h3 class="d-flex align-items-center gap-3 pb-3 mb-4 border-bottom">
8-
<a href="/categories/{{ $key }}" class="link-dark text-decoration-none">
8+
<a href="/categories/{{ $key }}/" class="link-dark text-decoration-none">
99
{{ $key | humanize }}
1010
</a>
1111
<small class="badge fs-6 text-muted bg-light rounded-pill">{{ .Count }}</small>
1212
</h3>
1313
<ul class="row row-cols-3 row-cols-sm-4 row-cols-lg-4 row-cols-xl-6 list-unstyled">
14-
{{ range first 24 ($value.Pages) }}
15-
{{ partial "icon" . }}
16-
{{ end }}
14+
{{ range first 24 ($value.Pages) -}}
15+
{{- partial "icon" . -}}
16+
{{ end -}}
1717
</ul>
1818
{{ if gt .Count 24 }}
19-
<a class="d-block py-3 btn btn-subtle" href="/categories/{{ $key }}">
19+
<a class="d-block py-3 btn btn-subtle" href="/categories/{{ $key }}/">
2020
View all {{ .Count }}
2121
</a>
2222
{{ end }}
2323
</li>
24-
{{ end }}
25-
{{ end }}
26-
{{ end }}
24+
{{ end -}}
25+
{{ end -}}
26+
{{ end -}}
2727
</ul>
2828
</div>
29-

0 commit comments

Comments
 (0)