aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2019-07-23 09:41:14 +0300
committerGitHub <[email protected]>2019-07-23 09:41:14 +0300
commitb65a5cb2c9247bce8aa531ac0b3ba160250c38a0 (patch)
treefbf6f0433a973c069960890859e0911c97d677ed
parentcd4768aa81b0c1c7c7ebe33ffc4708a09e0b4a73 (diff)
downloadbootstrap-b65a5cb2c9247bce8aa531ac0b3ba160250c38a0.tar.xz
bootstrap-b65a5cb2c9247bce8aa531ac0b3ba160250c38a0.zip
Move Icons in data. (#29087)
-rw-r--r--site/content/docs/4.3/extend/icons.md23
-rw-r--r--site/data/icons.yml25
2 files changed, 37 insertions, 11 deletions
diff --git a/site/content/docs/4.3/extend/icons.md b/site/content/docs/4.3/extend/icons.md
index b950ad179..1be21c38e 100644
--- a/site/content/docs/4.3/extend/icons.md
+++ b/site/content/docs/4.3/extend/icons.md
@@ -11,19 +11,20 @@ Bootstrap doesn't include an icon library by default, but we have a handful of r
We've tested and used these icon sets ourselves.
-- [Font Awesome](https://fontawesome.com/)
-- [Feather](https://feathericons.com/)
-- [Octicons](https://octicons.github.com/)
+{{< markdown >}}
+{{< icons.inline >}}
+{{- $type := .Get "type" | default "preferred" -}}
+
+{{- range (index .Site.Data.icons $type) }}
+- [{{ .name }}]({{ .website }})
+{{- end }}
+{{< /icons.inline >}}
+{{< /markdown >}}
## More options
While we haven't tried these out, they do look promising and provide multiple formats—including SVG.
-- [Bytesize](https://github.com/danklammer/bytesize-icons)
-- [Google Material icons](https://material.io/tools/icons/)
-- [Ionicons](https://ionicons.com/)
-- [Dripicons](http://demo.amitjakhu.com/dripicons/)
-- [Ikons](http://ikons.piotrkwiatkowski.co.uk/)
-- [Glyph](https://glyph.smarticons.co/)
-- [Icons8](https://icons8.com/)
-- [icofont](https://icofont.com/)
+{{< markdown >}}
+{{< icons.inline type="more" />}}
+{{< /markdown >}}
diff --git a/site/data/icons.yml b/site/data/icons.yml
new file mode 100644
index 000000000..81a65aa11
--- /dev/null
+++ b/site/data/icons.yml
@@ -0,0 +1,25 @@
+preferred:
+ - name: Font Awesome
+ website: https://fontawesome.com/
+ - name: Feather
+ website: https://feathericons.com/
+ - name: Octicons
+ website: https://octicons.github.com/
+
+more:
+ - name: Bytesize
+ website: https://github.com/danklammer/bytesize-icons
+ - name: Google Material icons
+ website: https://material.io/tools/icons/
+ - name: Ionicons
+ website: https://ionicons.com/
+ - name: Dripicons
+ website: http://demo.amitjakhu.com/dripicons/
+ - name: Ikons
+ website: http://ikons.piotrkwiatkowski.co.uk/
+ - name: Glyph
+ website: https://glyph.smarticons.co/
+ - name: Icons8
+ website: https://icons8.com/
+ - name: icofont
+ website: https://icofont.com/