Class: Jekyll::Vite::StylesheetTag
- Defined in:
- lib/jekyll/vite/tags.rb
Overview
Public: Renders a <link> tag for the specified stylesheet.
Instance Method Summary collapse
Methods inherited from Tag
Instance Method Details
#render(context) ⇒ Object
115 116 117 118 119 120 121 122 123 |
# File 'lib/jekyll/vite/tags.rb', line 115 def render(context) super { tag :link, **{ rel: 'stylesheet', href: vite_asset_path(@file, type: :stylesheet), media: 'screen', }.merge(@params) } end |
#syntax_example ⇒ Object
125 126 127 |
# File 'lib/jekyll/vite/tags.rb', line 125 def syntax_example "{% #{ @tag_name } application.scss media='screen, projection' %}" end |