Skip to content

Commit

Permalink
Add comments and clarify usage of 'linkIcon'
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpf committed Mar 27, 2024
1 parent aa2b8fa commit 9ba5f91
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib.typ
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@
)
}

// Use this method for icons in links to adjust their size.
#let linkIcon(..args) = {
icon(..args, width: 1.25em / 2, baseline: 0.125em * 3)
}

#let infoItem(iconName, msg) = {
text(colors.textTertiary, [#icon(iconName, baseline: 0.25em) #msg])
}
Expand Down Expand Up @@ -243,18 +238,23 @@
]
}

// A typical icon for outbound links. Use for hyperlinks.
let linkIcon(..args) = {
icon("arrow-up-right-from-square", ..args, width: 1.25em / 2, baseline: 0.125em * 3)
}

// Header
{
show link: it => [
#it #linkIcon("arrow-up-right-from-square")
#it #linkIcon()
]
header(author, job-title, bio: bio, avatar: avatar, contact-options: contact-options)
}

// Main content
{
show link: it => [
#it #linkIcon("arrow-up-right-from-square", color: colors.accentColor)
#it #linkIcon(color: colors.accentColor)
]
pad(
left: pageMargin,
Expand Down

0 comments on commit 9ba5f91

Please # to comment.