From 10c68b6dea8798b093875779bb3c30794dfc7cf6 Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Thu, 30 Oct 2025 22:48:58 -0500 Subject: media print --- assets/stylesheets/style.css | 12 ++++++++++++ layouts/_default/baseof.html | 4 ++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/assets/stylesheets/style.css b/assets/stylesheets/style.css index 05f0b5e..4b5e403 100644 --- a/assets/stylesheets/style.css +++ b/assets/stylesheets/style.css @@ -249,3 +249,15 @@ div.yt-4x3 iframe { font-size: inherit; } } + +@media print { + body, a { + line-height: 1.25; + font-size-adjust: .38; + } + + header, + .footnote-backref { + display: none; + } +} diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 974affa..d6ad48b 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -7,10 +7,10 @@ {{ $css := resources.Match "stylesheets/*.css" | resources.Concat "style.css" | minify | fingerprint }} - + {{ with $.Resources.GetMatch "**.css*" }} {{ $style := . | minify | fingerprint }} - + {{ end }} {{- block "head" . }}{{- end }} -- cgit v1.2.3