diff options
Diffstat (limited to 'docs/layouts/icons/single.html')
-rw-r--r-- | docs/layouts/icons/single.html | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/layouts/icons/single.html b/docs/layouts/icons/single.html index 0884587d7..3c8dc2deb 100644 --- a/docs/layouts/icons/single.html +++ b/docs/layouts/icons/single.html @@ -116,6 +116,19 @@ {{- highlight $iconFontSnippet "html" "" }} </div> + <h2 class="fs-3">Code point</h2> + <div class="mb-4"> + {{ $codepoints := getJSON "font/bootstrap-icons.json" -}} + {{ $hexCodepoint := printf "%X" (int (index $codepoints .File.TranslationBaseName)) }} + <p> + Unicode: <code>U+{{- $hexCodepoint}}</code><br/> + CSS: <code>\{{- $hexCodepoint}}</code><br/> + JS: <code>\u{{- $hexCodepoint}}</code><br/> + HTML: <code>&#x{{- $hexCodepoint}};</code> + </p> + </div> + + <h2 class="fs-3">Copy HTML</h2> <p>Paste the SVG right into your project's code.</p> |