You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add the `Font Awesome` Fieldtype to a Blueprint or Fieldset. The Fieldtype provides the option to only make certain icon styles available for selection.
71
71
72
-
### Template
72
+
### Tag
73
73
74
74
Add the following Tag to the `<head>` of your layout view to render the Font Awesome script.
75
75
76
-
```html
76
+
```antlers
77
77
{{ font_awesome:kit }}
78
78
```
79
79
80
-
You may use a different Kit in your template using the `token` parameter.
80
+
You may use a different Kit for rendering the icons in your template using the `token` parameter.
81
81
82
-
```html
82
+
```antlers
83
83
{{ font_awesome:kit token="f481b75381" }}
84
84
```
85
85
86
-
Use the following Tag to render an icon. In this example `icon` is the variable saved in your content.
86
+
Render an icon by using the handle of a Font Awesome field as the wildcard method.
87
87
88
-
```html
89
-
{{ font_awesome:icon }}
88
+
```antlers
89
+
{{ font_awesome:icon_field }}
90
90
```
91
91
92
+
You may also use the shorter tag alias instead.
93
+
94
+
```antlers
95
+
{{ fa:kit }}
96
+
97
+
{{ fa:icon_field }}
98
+
```
99
+
100
+
101
+
92
102
## Credits
93
103
Developed by [Michael Aerni](https://www.michaelaerni.ch)
0 commit comments