webfonts
Add web fonts from Google Web Fonts or Typekit.
Specification
{{ font_family | webfonts }} or {{ font_family | webfonts: typekit_id }}
Parameter | Description | Example Values |
---|---|---|
font_family (required) | The font family. | “Lato:300:latin” |
typekit_id | Typekit ID | “cna2ujr” |
Examples
This is how to use with Google Web Fonts …
{{ '"Lato:300:latin"' | webfonts }}
This is how to use with Typekit …
{{ '"myriad-pro-1","myriad-pro-2"' | webfonts: 'cna2ujr' }}