new news section, to display latest blog entry/section

This commit is contained in:
Torsten 2023-01-08 14:28:01 +02:00
parent 7ace1652fc
commit 1f430d89be
1 changed files with 9 additions and 0 deletions

View 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)