Commit f77df2e
committed
html-to-pdf: work around minified
When Hugo minifies resources, it attaches an `integrity` attribute. This
is usually very good! However, when we're trying to generate a `.pdf`
from a HTML file that contains hrefs that contain absolute paths, as we
do when deploying to GitHub Pages, we have to work around that by
re-routing the files. Combined with an `integrity` attribute, this will
fail, and there is no way around it other than editing out that
attribute.
So let's do just that.
Hacky, but works, and we can proceed activities that are substantially
more fun than battling well-intentioned-but-sometimes-really-unhelpful
security measures without escape hatches (there is no way to tell
Chromium that yes, this is intentional, but we need to ignore those
integrity checks in this context, thank you for your cooperation).
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>application.{css,js}
1 parent 292b108 commit f77df2e
1 file changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
50 | 63 | | |
51 | 64 | | |
52 | 65 | | |
| |||
0 commit comments