class Jekyll::Vite::StylesheetTag
Public: Renders a <link> tag for the specified stylesheet.
Public Instance Methods
render(context)
click to toggle source
Calls superclass method
Jekyll::Vite::Tag#render
# 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()
click to toggle source
# File lib/jekyll/vite/tags.rb, line 125 def syntax_example "{% #{ @tag_name } application.scss media='screen, projection' %}" end