diff options
| author | Tim Keller <tjk@tjkeller.xyz> | 2025-10-30 22:48:58 -0500 |
|---|---|---|
| committer | Tim Keller <tjk@tjkeller.xyz> | 2025-10-30 22:48:58 -0500 |
| commit | 10c68b6dea8798b093875779bb3c30794dfc7cf6 (patch) | |
| tree | 03eb3bb9a1387b2f2434ef359dcac41bfc9779c8 | |
| parent | 761bb7a2cee75a6a9f94a99fa5892d76f80fd6fb (diff) | |
| download | hugo-theme-tjkbasic-10c68b6dea8798b093875779bb3c30794dfc7cf6.tar.xz hugo-theme-tjkbasic-10c68b6dea8798b093875779bb3c30794dfc7cf6.zip | |
| -rw-r--r-- | assets/stylesheets/style.css | 12 | ||||
| -rw-r--r-- | 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 @@ <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1"> {{ $css := resources.Match "stylesheets/*.css" | resources.Concat "style.css" | minify | fingerprint }} - <link rel="stylesheet" href="{{ $css.Permalink }}"> + <link type="text/css" rel="stylesheet" href="{{ $css.Permalink }}"> {{ with $.Resources.GetMatch "**.css*" }} {{ $style := . | minify | fingerprint }} - <link type=text/css rel="stylesheet" href="{{ $style.Permalink }}"> + <link type="text/css" rel="stylesheet" href="{{ $style.Permalink }}"> {{ end }} {{- block "head" . }}{{- end }} </head> |
