get_git_user_name <- function() {
tryCatch(
with(
gert::git_config(),
value[name == "user.name"]
),
error = function(e) {
"<author>"
}
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.