diff --git a/src/components/resume/templates/ditgar.tsx b/src/components/resume/templates/ditgar.tsx index c586a5a91..ccb4c75a5 100644 --- a/src/components/resume/templates/ditgar.tsx +++ b/src/components/resume/templates/ditgar.tsx @@ -10,9 +10,6 @@ const sectionClassName = cn( // Section Heading "[&>h6]:border-(--page-primary-color) [&>h6]:border-b", - // Icon Colors in Sidebar Layout - "group-data-[layout=sidebar]:[&_.section-item_i]:text-(--page-background-color)!", - // Section Item Header in Sidebar Layout "group-data-[layout=sidebar]:[&_.section-item-header>div]:flex-col", "group-data-[layout=sidebar]:[&_.section-item-header>div]:items-start", @@ -25,9 +22,16 @@ export function DitgarTemplate({ pageIndex, pageLayout }: TemplateProps) { const isFirstPage = pageIndex === 0; const { main, sidebar, fullWidth } = pageLayout; + const SummaryComponent = getSectionComponent("summary", { + sectionClassName: cn(sectionClassName, "px-(--page-margin-x) pt-(--page-margin-y)"), + }); + return (
-
+
{isFirstPage &&
}
@@ -38,18 +42,16 @@ export function DitgarTemplate({ pageIndex, pageLayout }: TemplateProps) {
-
- {isFirstPage && - (() => { - const SummaryComponent = getSectionComponent("summary", { sectionClassName }); - return ; - })()} +
+ {isFirstPage && }
- {main.map((section) => { - const Component = getSectionComponent(section, { sectionClassName }); - return ; - })} + {main + .filter((section) => section !== "summary") + .map((section) => { + const Component = getSectionComponent(section, { sectionClassName }); + return ; + })}
@@ -68,7 +70,7 @@ function Header() {

{basics.headline}

-
+
{basics.location && (