diff --git a/src/templates/modern.typ b/src/templates/modern.typ index 7bd6503..060f29d 100644 --- a/src/templates/modern.typ +++ b/src/templates/modern.typ @@ -242,10 +242,23 @@ width: 100%, height: 3.25cm, inset: (x: 2em), - align(outer-side + horizon, rotate(90deg * odd-side, align(center)[ - #code - #place(bottom + center, dy: 0.15em, text(size: 0.18em, fill: theme.primary)[#datamatrix-slug/#page-num]) - ])), + if odd-side == -1 { + align(right + horizon, rotate(-90deg, align(center)[ + #code + #place(bottom + center, dy: 0.15em, text( + size: 0.18em, + fill: theme.primary, + )[#datamatrix-slug/#page-num]) + ])) + } else { + align(left + horizon, rotate(-90deg, align(center)[ + #code + #place(bottom + center, dy: 0.15em, text( + size: 0.18em, + fill: theme.primary, + )[#datamatrix-slug/#page-num]) + ])) + }, ), ) }