Skip to content

Commit 46258e9

Browse files
minor updates for pdf metadata
1 parent 6766e2c commit 46258e9

3 files changed

Lines changed: 13 additions & 5 deletions

File tree

_extensions/awesomecv/_extension.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
title: quarto-awesomecv-typst
22
author: Kazuharu Yanagimoto
3-
version: 0.3.0
4-
quarto-required: ">=1.7.33"
3+
version: 0.3.2
4+
quarto-required: ">=1.8.0"
55
contributes:
66
formats:
77
typst:

_extensions/awesomecv/typst-show.typ

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#show: resume.with(
22
$if(title)$
33
title: [$title$],
4+
title-meta: "$title-meta$$if(title-meta)$$else$$title$$endif$",
45
$endif$
56
$if(date)$
67
date: [$date$],
@@ -17,6 +18,7 @@ $if(author)$
1718
icon: unescape_text("$it.icon$"),
1819
)$sep$, $endfor$),
1920
),
21+
author-meta: "$author.firstname$" + " " + "$author.lastname$",
2022
$endif$
2123
$if(profile-photo)$
2224
profile-photo: unescape_text("$profile-photo$"),
@@ -41,4 +43,8 @@ $if(style.color-link)$
4143
$elseif(brand.color.link)$
4244
color-link: brand-color.link,
4345
$endif$
46+
$if(keywords)$
47+
keywords: [$for(keywords)$$keywords$$sep$, $endfor$],
48+
keywords-meta: ($for(keywords)$"$keywords$"$sep$, $endfor$),
49+
$endif$
4450
)

_extensions/awesomecv/typst-template.typ

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#import "@preview/fontawesome:0.5.0": *
1+
#import "@preview/fontawesome:0.6.0": *
22

33
//------------------------------------------------------------------------------
44
// Style
@@ -334,6 +334,8 @@
334334
font-text: "Source Sans 3",
335335
color-accent: rgb("#dc3522"),
336336
color-link: color-darknight,
337+
title-meta: none,
338+
author-meta: none,
337339
body,
338340
) = {
339341
// Set states ----------------------------------------------------------------
@@ -344,8 +346,8 @@
344346

345347
// Set document metadata -----------------------------------------------------
346348
set document(
347-
author: author.firstname + " " + author.lastname,
348-
title: title,
349+
title: title-meta,
350+
author: author-meta,
349351
)
350352

351353
set text(

0 commit comments

Comments
 (0)