mirror of
https://github.com/alex-s168/website.git
synced 2025-09-10 09:05:08 +02:00
make the .nano.html version actually good
This commit is contained in:
@@ -1,13 +1,22 @@
|
||||
#import "../common.typ": *
|
||||
#import "../simple-page-layout.typ": variant-link
|
||||
|
||||
#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
|
||||
]}
|
||||
#if is-nano [
|
||||
#if git_commit_date != "" [
|
||||
Last modified: #git_commit_date
|
||||
#if git_rev != "" [
|
||||
(Git \##raw(short_git_rev))
|
||||
]
|
||||
]
|
||||
] else [
|
||||
#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
|
||||
@@ -16,3 +25,9 @@
|
||||
|
||||
Written by #authors.map((p) => person(p)).join[, ]
|
||||
]
|
||||
|
||||
#let pdf-readability() = {
|
||||
if is-web {section[
|
||||
Note that the #variant-link([PDF Version], ".min.pdf") of this page might look a bit better styling wise.
|
||||
]}
|
||||
}
|
||||
|
Reference in New Issue
Block a user