Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add related icons to single page #1685

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,8 @@ params:
icons: "https://icons.getbootstrap.com/"
swag: "https://cottonbureau.com/people/bootstrap"
icons_figma: "https://www.figma.com/community/file/1042482994486402696/Bootstrap-Icons"

related:
indices:
- name: tags
weight: 100
19 changes: 19 additions & 0 deletions docs/layouts/icons/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,25 @@ <h2 class="fs-3">Copy HTML</h2>
{{ highlight $svgHtml "html" "" }}
</div>
</div>

<div class="row gx-lg-5">
<div class="col-lg-8">
<h2 class="fs-3">Related icons</h2>
<ul id="icons-list" class="row row-cols-3 row-cols-sm-4 row-cols-lg-6 row-cols-xl-8 list-unstyled list">
{{ $related := .Site.RegularPages.Related . -}}
{{- range first 10 $related -}}
<li class="col mb-4">
<a class="d-block text-body-emphasis text-decoration-none" href="{{ .RelPermalink }}">
<div class="px-3 py-4 mb-2 bg-body-secondary text-center rounded">
<i class="bi bi-{{ .File.TranslationBaseName }}"></i>
vanillajonathan marked this conversation as resolved.
Show resolved Hide resolved
</div>
<div class="name text-muted text-decoration-none text-center pt-1">{{ .Title }}</div>
</a>
</li>
{{- end }}
</ul>
</div>
</div>
</main>

{{- partialCached "footer" . }}
Expand Down