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
Changes from 1 commit
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
32 changes: 15 additions & 17 deletions docs/layouts/icons/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -146,23 +146,21 @@ <h2 class="fs-3">Copy HTML</h2>
{{ highlight $svgHtml "html" "" }}
</div>

<div class="related">
<h2 class="h3 mb-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>
</div>
<div class="name text-muted text-decoration-none text-center pt-1">{{ .Title }}</div>
</a>
</li>
{{- end }}
</ul>
</div>
<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">
vanillajonathan marked this conversation as resolved.
Show resolved Hide resolved
{{ $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>
</div>
<div class="name text-muted text-decoration-none text-center pt-1">{{ .Title }}</div>
</a>
</li>
{{- end }}
</ul>
</div>
</main>

Expand Down