enhance classic theme

This commit is contained in:
Sina Atalay 2024-02-15 19:30:38 +01:00
parent 945a33a176
commit 9cfe6ed159
3 changed files with 16 additions and 6 deletions

View File

@ -16,19 +16,19 @@
\normalsize
((* if cv.phone *))
\mbox{\hrefWithoutArrow{<<cv.phone|replace("-","")>>}{{\footnotesize\faPhone*}\hspace{0.13cm}<<cv.phone|replace("tel:", "")|replace("-"," ")>>}}
\hspace{0.5cm}
\hspace{<<design.space_between_connection_objects>>}
((* endif *))
((* if cv.email *))
\mbox{\hrefWithoutArrow{mailto:<<cv.email>>}{{\small\faEnvelope[regular]}\hspace{0.13cm}<<cv.email>>}}
\hspace{0.5cm}
\hspace{<<design.space_between_connection_objects>>}
((* endif *))
((* if cv.location *))
\mbox{{\small\faMapMarker*}\hspace{0.13cm}<<cv.location>>}
\hspace{0.5cm}
\hspace{<<design.space_between_connection_objects>>}
((* endif *))
((* if cv.website *))
\mbox{\hrefWithoutArrow{<<cv.website>>}{{\small\faLink}\hspace{0.13cm}<<cv.website|replace("https://","")|reverse|replace("/", "", 1)|reverse>>}}
\hspace{0.5cm}
\hspace{<<design.space_between_connection_objects>>}
((* endif *))
((*
set icon_dictionary = {
@ -41,8 +41,8 @@
((* if cv.social_networks *))
((* for network in cv.social_networks *))
((* if network.network in icon_dictionary *))
\mbox{\hrefWithoutArrow{network.url}{{\small<<icon_dictionary[network.network]>>}\hspace{0.13cm}<<network.username>>}}
\hspace{0.5cm}
\mbox{\hrefWithoutArrow{<<network.url>>}{{\small<<icon_dictionary[network.network]>>}\hspace{0.13cm}<<network.username>>}}
\hspace{<<design.space_between_connection_objects>>}
((* endif *))
((* endfor *))
((* endif *))

View File

@ -122,3 +122,6 @@
\let\originalEndTabularx\endtabularx
\renewenvironment{tabularx}{\bgroup\centering\originalTabularx}{\originalEndTabularx\par\egroup}
% Ensure that generate pdf is machine readable/ATS parsable
\pdfgentounicode=1

View File

@ -166,6 +166,13 @@ class ClassicThemeOptions(pydantic.BaseModel):
title="Date and Location Column Width",
description="The width of the date and location column.",
)
space_between_connection_objects: LaTeXDimension = pydantic.Field(
default="0.5 cm",
title="Space Between Connection Objects",
description=(
"The space between the connection objects (like phone, email, and website)."
),
)
text_alignment: Literal["left-aligned", "justified"] = pydantic.Field(
default="left-aligned",
title="Text Alignment",