From 1f430d89bee7f34671dbb22331378f63c03a0e40 Mon Sep 17 00:00:00 2001 From: Torsten Date: Sun, 8 Jan 2023 14:28:01 +0200 Subject: [PATCH] new news section, to display latest blog entry/section --- app/views/merged/view/_section_news.haml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 app/views/merged/view/_section_news.haml diff --git a/app/views/merged/view/_section_news.haml b/app/views/merged/view/_section_news.haml new file mode 100644 index 0000000..8952b97 --- /dev/null +++ b/app/views/merged/view/_section_news.haml @@ -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)