Sha256: 8ab2a6a52ea80ec508fe5868215dc0f7ba3f6c4f0eb7bf05a4661a215eb920aa
Contents?: true
Size: 499 Bytes
Versions: 1
Compression:
Stored size: 499 Bytes
Contents
# frozen_string_literal: true module Cosensee class TailwindRenderer GyazoImageBracket = Data.define(:content, :project) do def render if content.link %(<span><a href="#{content.link}"><img loading="lazy" src="https://gyazo.com/#{content.image_id}/raw" class="max-w-max max-h-80"></a></span>) else %(<span><img loading="lazy" src="https://gyazo.com/#{content.image_id}/raw" class="max-w-max max-h-80"></span>) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cosensee-0.8.0 | lib/cosensee/tailwind_renderer/gyazo_image_bracket.rb |