feat: add homepage to contacts
This commit is contained in:
6
lib.typ
6
lib.typ
@@ -27,6 +27,7 @@
|
|||||||
#let phone-icon = box(fa-icon("square-phone", fill: color-darknight))
|
#let phone-icon = box(fa-icon("square-phone", fill: color-darknight))
|
||||||
#let email-icon = box(fa-icon("envelope", fill: color-darknight))
|
#let email-icon = box(fa-icon("envelope", fill: color-darknight))
|
||||||
#let birth-icon = box(fa-icon("cake", fill: color-darknight))
|
#let birth-icon = box(fa-icon("cake", fill: color-darknight))
|
||||||
|
#let homepage-icon = box(fa-icon("home", fill: color-darknight))
|
||||||
|
|
||||||
/// Helpers
|
/// Helpers
|
||||||
|
|
||||||
@@ -324,6 +325,11 @@
|
|||||||
#email-icon
|
#email-icon
|
||||||
#box[#link("mailto:" + author.email)[#author.email]]
|
#box[#link("mailto:" + author.email)[#author.email]]
|
||||||
]
|
]
|
||||||
|
#if ("homepage" in author) [
|
||||||
|
#separator
|
||||||
|
#homepage-icon
|
||||||
|
#box[#link(author.homepage)[#author.homepage]]
|
||||||
|
]
|
||||||
#if ("github" in author) [
|
#if ("github" in author) [
|
||||||
#separator
|
#separator
|
||||||
#github-icon
|
#github-icon
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
firstname: "John",
|
firstname: "John",
|
||||||
lastname: "Smith",
|
lastname: "Smith",
|
||||||
email: "js@gmail.com",
|
email: "js@gmail.com",
|
||||||
|
homepage: "https://example.com",
|
||||||
phone: "(+1) 111-111-1111",
|
phone: "(+1) 111-111-1111",
|
||||||
github: "DeveloperPaul123",
|
github: "DeveloperPaul123",
|
||||||
linkedin: "John Smith",
|
linkedin: "John Smith",
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
firstname: "John",
|
firstname: "John",
|
||||||
lastname: "Smith",
|
lastname: "Smith",
|
||||||
email: "js@gmail.com",
|
email: "js@gmail.com",
|
||||||
|
homepage: "https://example.com",
|
||||||
phone: "(+1) 111-111-1111",
|
phone: "(+1) 111-111-1111",
|
||||||
github: "DeveloperPaul123",
|
github: "DeveloperPaul123",
|
||||||
linkedin: "John Smith",
|
linkedin: "John Smith",
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
firstname: "John",
|
firstname: "John",
|
||||||
lastname: "Smith",
|
lastname: "Smith",
|
||||||
email: "js@example.com",
|
email: "js@example.com",
|
||||||
|
homepage: "https://example.com",
|
||||||
phone: "(+1) 111-111-1111",
|
phone: "(+1) 111-111-1111",
|
||||||
github: "DeveloperPaul123",
|
github: "DeveloperPaul123",
|
||||||
twitter: "typstapp",
|
twitter: "typstapp",
|
||||||
|
|||||||
Reference in New Issue
Block a user