add domain name after url text (#46)
This commit is contained in:
parent
c60d81bd2d
commit
39c620c270
|
@ -40,7 +40,13 @@
|
|||
}
|
||||
|
||||
#let url(label, content) = {
|
||||
link(label)[#underline(offset: 2pt, stroke: 0.5pt + blue, text(fill: blue, content))]
|
||||
link(label)[#underline(offset: 2pt, stroke: 0.5pt + blue, text(fill: blue)[
|
||||
#content
|
||||
#let domain = label.find(regex("\w+\.\w+(?:\.\w+)*"))
|
||||
#if domain.len() > 0 [
|
||||
(#domain)
|
||||
]
|
||||
])]
|
||||
}
|
||||
|
||||
// start of template pages and styles
|
||||
|
|
|
@ -68,7 +68,7 @@ $
|
|||
lorem(200),
|
||||
)
|
||||
|
||||
#url("https://github.com", "text (github.com)")
|
||||
#url("https://github.com", "text")
|
||||
|
||||
#lorem(50)
|
||||
|
||||
|
|
Loading…
Reference in New Issue