add BK LuxusLAN news and update NewsPost component to improve image support
This commit was merged in pull request #6.
This commit is contained in:
@@ -7,6 +7,7 @@ from from_root import from_root
|
||||
|
||||
from .page_builder import build_page
|
||||
from .. import components as comps
|
||||
from ..components.news_post import NewsPostImage
|
||||
|
||||
|
||||
class Home(rio.Component):
|
||||
@@ -31,6 +32,17 @@ class Home(rio.Component):
|
||||
margin_bottom=1,
|
||||
margin_right=1
|
||||
),
|
||||
comps.build_news_post(
|
||||
header="Das war die BK-LuxusLAN 15",
|
||||
article_text_path_or_text=from_root("ezgg_website/assets/news_25_11_24.md"),
|
||||
date="25.11.2024",
|
||||
images=[
|
||||
NewsPostImage(
|
||||
from_root("ezgg_website/assets/bk_luxus_lan_15.jpeg"),
|
||||
"https://verwaltung.ezgg-ev.de/adm_program/modules/photos/photo_show.php?photo_uuid=bc0c54ce-a87e-426a-893d-2bbcc2c28ce3&photo_nr=3"
|
||||
)
|
||||
],
|
||||
),
|
||||
comps.build_news_post(
|
||||
header="Eine Laura und 21 Bilder",
|
||||
article_text_path_or_text=from_root("ezgg_website/assets/news_25_10_24.md"),
|
||||
@@ -59,7 +71,7 @@ class Home(rio.Component):
|
||||
comps.build_news_post(
|
||||
header="Eintragung abgeschlossen!",
|
||||
article_text_path_or_text=from_root("ezgg_website/assets/news_06_06_24.md"),
|
||||
images=[from_root("ezgg_website/assets/a38.png")],
|
||||
images=[NewsPostImage(from_root("ezgg_website/assets/a38.png"), None)],
|
||||
date="06.06.2024"
|
||||
),
|
||||
comps.build_news_post(
|
||||
|
||||
Reference in New Issue
Block a user