Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Nov 26, 2022
1 parent 0068f88 commit 8c8aa82
Show file tree
Hide file tree
Showing 10 changed files with 39 additions and 46 deletions.
1 change: 0 additions & 1 deletion docs/content/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,4 +227,3 @@ Found another issue with SVGs we should note? Please open [an issue]({{< param r
{{< /md >}}
</div>
</div>

1 change: 0 additions & 1 deletion docs/content/icons/hand-thumbs-down-fill.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ tags:
- hand
- pointer
- thumbs-down
- "-1"
---
1 change: 0 additions & 1 deletion docs/content/icons/hand-thumbs-down.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ tags:
- hand
- pointer
- thumbs-down
- "-1"
---
1 change: 0 additions & 1 deletion docs/content/icons/hand-thumbs-up-fill.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ tags:
- hand
- pointer
- thumbs-up
- "+1"
---
1 change: 0 additions & 1 deletion docs/content/icons/hand-thumbs-up.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ tags:
- hand
- pointer
- thumbs-up
- "+1"
---
14 changes: 7 additions & 7 deletions docs/layouts/_default/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<input class="form-control search mb-0" id="search" type="search" placeholder="Search icons..." autocomplete="off">
</form>

<h6><a href="/docs">Documentation</a></h6>
<h6><a href="{{ .Site.Params.main }}/docs/">Documentation</a></h6>
<ul class="nav nav-pills flex-column bd-sidebar-list">
<li class="nav-item">
<a class="nav-link" href="">Install</a>
Expand All @@ -23,16 +23,16 @@ <h6><a href="/docs">Documentation</a></h6>
<a class="nav-link" href="">Styling</a>
</li>
</ul>
<h6><a href="/categories">Categories</a></h6>
<h6><a href="/categories/">Categories</a></h6>
<ul id="categories" class="nav nav-pills flex-column bd-sidebar-list">
{{ range $taxonomyname, $taxonomy := .Site.Taxonomies }}
{{ if eq "categories" $taxonomyname }}
{{ range $key, $value := $taxonomy }}
{{ range $taxonomyName, $taxonomy := .Site.Taxonomies -}}
{{ if eq "categories" $taxonomyName -}}
{{ range $key, $value := $taxonomy -}}
<li class="nav-item">
<a class="nav-link" href="#{{ $key }}">{{ $key | humanize }}</a>
</li>
{{ end }}
{{ end }}
{{ end -}}
{{ end -}}
{{ end }}
</ul>
</div>
Expand Down
13 changes: 6 additions & 7 deletions docs/layouts/_default/taxonomy.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,16 @@

<h1 class="h2 mb-4">All {{ .Type }}</h1>
<div class="grid category-grid">
{{ range .Data.Pages }}
{{ range .Data.Pages -}}
<a class="category-grid-item d-block text-decoration-none link-dark hover-link-primary" href="{{ .Permalink }}">
<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">
{{ range first 10 (where .Data.Pages ".Params.categories" "intersect" (slice .Title)) }}
{{ $name := .Title | urlize }}
{{ range first 10 (where .Data.Pages ".Params.categories" "intersect" (slice .Title)) -}}
{{- $name := .Title | urlize -}}
<i class="bi bi-{{ $name }}"></i>
{{ end }}
{{ end -}}
</div>
<h2 class="fs-5">{{ .Title }}</h2>
</a>
{{ end }}
{{ end -}}
</div>
{{ end }}

{{ end -}}
12 changes: 6 additions & 6 deletions docs/layouts/icons/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ <h1>{{ .Title }}</h1>
<ul class="list-unstyled mb-3 mb-md-0">
<li>
<strong>Category:</strong>
{{ range .Params.categories }}
<a href="/categories/{{ . | urlize}}">{{ . }}</a>
{{ end }}
{{ range .Params.categories -}}
<a href="/categories/{{ . | urlize }}/">{{ . }}</a>
{{ end -}}
</li>
<li>
<strong>Tags:</strong>
{{ range .Params.tags }}
<a href="/tags/{{ . | urlize}}">{{ . }}</a>
{{ end }}
{{ range .Params.tags -}}
<a href="/tags/{{ . | urlize }}/">{{ . }}</a>
{{ end -}}
</li>
</ul>
{{- end }}
Expand Down
18 changes: 9 additions & 9 deletions docs/layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@
<span class="fs-5">Bootstrap</span>
</a>
<ul class="list-unstyled small text-muted">
<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>
<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>
<li class="mb-2">Code licensed <a href="{{ .Site.Params.repo }}/blob/main/LICENSE.md" target="_blank" rel="license noopener">MIT</a>.</li>
<li class="mb-2">Currently v{{ .Site.Params.version }}.</li>
</ul>
</div>
<div class="col-6 col-lg-2 offset-lg-1 mb-3">
<h5>Links</h5>
<ul class="list-unstyled">
<li class="mb-2"><a href="/">Home</a></li>
<li class="mb-2"><a href="/docs/{{ .Site.Params.docs_version }}/">Docs</a></li>
<li class="mb-2"><a href="/docs/{{ .Site.Params.docs_version }}/examples/">Examples</a></li>
<li class="mb-2"><a href="{{ .Site.Params.main }}">Home</a></li>
<li class="mb-2"><a href="{{ .Site.Params.main }}/docs/{{ .Site.Params.docs_version }}/">Docs</a></li>
<li class="mb-2"><a href="{{ .Site.Params.main }}/docs/{{ .Site.Params.docs_version }}/examples/">Examples</a></li>
<li class="mb-2"><a href="{{ .Site.Params.icons }}">Icons</a></li>
<li class="mb-2"><a href="{{ .Site.Params.themes }}">Themes</a></li>
<li class="mb-2"><a href="{{ .Site.Params.blog }}">Blog</a></li>
Expand All @@ -27,11 +27,11 @@ <h5>Links</h5>
<div class="col-6 col-lg-2 mb-3">
<h5>Guides</h5>
<ul class="list-unstyled">
<li class="mb-2"><a href="/docs/{{ .Site.Params.docs_version }}/getting-started/">Getting started</a></li>
<li class="mb-2"><a href="/docs/{{ .Site.Params.docs_version }}/examples/starter-template/">Starter template</a></li>
<li class="mb-2"><a href="/docs/{{ .Site.Params.docs_version }}/getting-started/webpack/">Webpack</a></li>
<li class="mb-2"><a href="/docs/{{ .Site.Params.docs_version }}/getting-started/parcel/">Parcel</a></li>
<li class="mb-2"><a href="/docs/{{ .Site.Params.docs_version }}/getting-started/vite/">Vite</a></li>
<li class="mb-2"><a href="{{ .Site.Params.main }}/docs/{{ .Site.Params.docs_version }}/getting-started/">Getting started</a></li>
<li class="mb-2"><a href="{{ .Site.Params.main }}/docs/{{ .Site.Params.docs_version }}/examples/starter-template/">Starter template</a></li>
<li class="mb-2"><a href="{{ .Site.Params.main }}/docs/{{ .Site.Params.docs_version }}/getting-started/webpack/">Webpack</a></li>
<li class="mb-2"><a href="{{ .Site.Params.main }}/docs/{{ .Site.Params.docs_version }}/getting-started/parcel/">Parcel</a></li>
<li class="mb-2"><a href="{{ .Site.Params.main }}/docs/{{ .Site.Params.docs_version }}/getting-started/vite/">Vite</a></li>
</ul>
</div>
<div class="col-6 col-lg-2 mb-3">
Expand Down
23 changes: 11 additions & 12 deletions docs/layouts/partials/icons.html
Original file line number Diff line number Diff line change
@@ -1,29 +1,28 @@
<div class="my-5">
<ul class="list-unstyled list">
{{ range $taxonomyname, $taxonomy := .Site.Taxonomies }}
{{ if eq "categories" $taxonomyname }}
{{ range $key, $value := $taxonomy }}
{{ range $taxonomyName, $taxonomy := .Site.Taxonomies -}}
{{ if eq "categories" $taxonomyName -}}
{{ range $key, $value := $taxonomy -}}
<li class="my-5" id="{{ $key }}">
<h3 class="d-flex align-items-center gap-3 pb-3 mb-4 border-bottom">
<a href="/categories/{{ $key }}" class="link-dark text-decoration-none">
<a href="/categories/{{ $key }}/" class="link-dark text-decoration-none">
{{ $key | humanize }}
</a>
<small class="badge fs-6 text-muted bg-light rounded-pill">{{ .Count }}</small>
</h3>
<ul class="row row-cols-3 row-cols-sm-4 row-cols-lg-4 row-cols-xl-6 list-unstyled">
{{ range first 24 ($value.Pages) }}
{{ partial "icon" . }}
{{ end }}
{{ range first 24 ($value.Pages) -}}
{{- partial "icon" . -}}
{{ end -}}
</ul>
{{ if gt .Count 24 }}
<a class="d-block py-3 btn btn-subtle" href="/categories/{{ $key }}">
<a class="d-block py-3 btn btn-subtle" href="/categories/{{ $key }}/">
View all {{ .Count }}
</a>
{{ end }}
</li>
{{ end }}
{{ end }}
{{ end }}
{{ end -}}
{{ end -}}
{{ end -}}
</ul>
</div>

0 comments on commit 8c8aa82

Please sign in to comment.