From ad943601b628cf468c5a63998407c275a16fc898 Mon Sep 17 00:00:00 2001 From: Sina Atalay Date: Mon, 15 Apr 2024 18:05:14 +0300 Subject: [PATCH] themes: add a new design option, `disable_external_link_icons` --- rendercv/themes/__init__.py | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/rendercv/themes/__init__.py b/rendercv/themes/__init__.py index 77f411f..1852021 100644 --- a/rendercv/themes/__init__.py +++ b/rendercv/themes/__init__.py @@ -209,11 +209,19 @@ class ThemeOptions(pydantic.BaseModel): ), examples=["Black", "7fffd4", "rgb(0,79,144)", "hsl(270, 60%, 70%)"], ) + disable_external_link_icons: bool = pydantic.Field( + default=False, + title="Disable External Link Icons", + description=( + "If this option is set to true, then the external link icons will not be" + " shown next to the links. The default value is false." + ), + ) disable_page_numbering: bool = pydantic.Field( default=False, title="Disable Page Numbering", description=( - "If this option is set to true, then the page numbering will be disabled." + "If this option is set to true, then the page numbering will not be shown." " The default value is false." ), ) @@ -227,12 +235,12 @@ class ThemeOptions(pydantic.BaseModel): " NAME - Page PAGE_NUMBER of TOTAL_PAGES." ), ) - show_last_updated_date: bool = pydantic.Field( - default=True, - title="Show Last Updated Date", + disable_last_updated_date: bool = pydantic.Field( + default=False, + title="Disable Last Updated Date", description=( - "If this option is set to true, then the last updated date will be shown" - " in the header. The default value is true." + "If this option is set to true, then the last updated date will not be" + " shown in the header. The default value is false." ), ) last_updated_date_style: str = pydantic.Field(