small refactor

This commit is contained in:
2025-07-22 23:36:20 +02:00
parent 8053caf1db
commit c9d8f8db60
7 changed files with 89 additions and 51 deletions

18
components/header.typ Normal file
View File

@@ -0,0 +1,18 @@
#import "../common.typ": *
#let rev() = [
#if git_rev != "" {[
Git revision #flink("https://github.com/alex-s168/website/tree/" + git_rev)[\##short_git_rev]
]}
#if git_commit_date != "" {[
Modified at #git_commit_date
]}
]
// authors is list of people in common:people
#let rev-and-authors(authors) = [
#rev()
Written by #authors.map((p) => person(p)).join[, ]
]