new news section, to display latest blog entry/section
This commit is contained in:
parent
7ace1652fc
commit
1f430d89be
9
app/views/merged/view/_section_news.haml
Normal file
9
app/views/merged/view/_section_news.haml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
- if blog = last_blog
|
||||||
|
%section.border.py-20{ options(section , :background )}
|
||||||
|
.flex.mx-20.justify-between.items-center
|
||||||
|
.text-2xl.font-bold.tracking-tight.sm:text-4xl
|
||||||
|
= section.header
|
||||||
|
.text-lg
|
||||||
|
= section.text
|
||||||
|
- template = find_template(last_blog)
|
||||||
|
= render( template , section: last_blog)
|
Loading…
Reference in New Issue
Block a user