fix the fixed prose
This commit is contained in:
parent
000d90171c
commit
7b67a61d02
BIN
app/assets/images/merged/card_preview/card_feature.png
Normal file
BIN
app/assets/images/merged/card_preview/card_feature.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 29 KiB |
@ -14,10 +14,10 @@ module Merged
|
|||||||
|
|
||||||
def prose_classes
|
def prose_classes
|
||||||
classes = "prose lg:prose-lg "
|
classes = "prose lg:prose-lg "
|
||||||
classes += "prose-headings:text-inherit"
|
classes += "prose-headings:text-inherit "
|
||||||
{ class: classes }
|
{ class: classes }
|
||||||
end
|
end
|
||||||
|
|
||||||
def markdown_image(section)
|
def markdown_image(section)
|
||||||
return "" unless section.text
|
return "" unless section.text
|
||||||
down = self.renderer.render(section.text)
|
down = self.renderer.render(section.text)
|
||||||
|
@ -31,6 +31,11 @@ module Merged
|
|||||||
"#{attr} of #{date.strftime('%B')} #{date.year}"
|
"#{attr} of #{date.strftime('%B')} #{date.year}"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# adds prose irrespective of options
|
||||||
|
def prose_option(section)
|
||||||
|
prose_classes
|
||||||
|
end
|
||||||
|
|
||||||
def order_option(section , clazz = "")
|
def order_option(section , clazz = "")
|
||||||
if section.has_option?("order")
|
if section.has_option?("order")
|
||||||
clazz += " md:order-last" if section.option('order') == "right"
|
clazz += " md:order-last" if section.option('order') == "right"
|
||||||
|
@ -24,9 +24,9 @@
|
|||||||
%td.whitespace-nowrap.px-4.py-2.text-gray-700
|
%td.whitespace-nowrap.px-4.py-2.text-gray-700
|
||||||
= type.to_s.capitalize
|
= type.to_s.capitalize
|
||||||
-[:Page , :Section , :Card , :Image].each do |element|
|
-[:Page , :Section , :Card , :Image].each do |element|
|
||||||
%td.whitespace-nowrap.px-4.py-2.text-gray-700
|
%td.px-4.py-2.text-gray-700
|
||||||
- changeset(type , element).each do |name|
|
- changeset(type , element).each do |name|
|
||||||
%span=name.last
|
=name.last
|
||||||
|
|
||||||
.grid.grid-cols-3.bg-white
|
.grid.grid-cols-3.bg-white
|
||||||
.items-center.justify-center.col-span-2
|
.items-center.justify-center.col-span-2
|
||||||
|
@ -8,6 +8,5 @@
|
|||||||
.text-xl.pb-6{ prose_classes }
|
.text-xl.pb-6{ prose_classes }
|
||||||
= section.option("subheader")
|
= section.option("subheader")
|
||||||
|
|
||||||
.max-w-full.mt-4.gap-16{ text_column_option(section)}
|
.max-w-full.mt-4.gap-16{ options(section , :text_column , :prose ) }
|
||||||
%div{ prose_classes }
|
= markdown_image(section)
|
||||||
= markdown_image(section)
|
|
||||||
|
@ -77,7 +77,7 @@
|
|||||||
shade_color: black_25
|
shade_color: black_25
|
||||||
color: solid_blue
|
color: solid_blue
|
||||||
align: left
|
align: left
|
||||||
:updated_at: 2023-01-01 14:31:09.419445755 +02:00
|
:updated_at: 2023-01-04 23:50:28.275902275 +02:00
|
||||||
:page_id: 6
|
:page_id: 6
|
||||||
:index: 2
|
:index: 2
|
||||||
:image_id: 16
|
:image_id: 16
|
||||||
|
Loading…
Reference in New Issue
Block a user