diff --git a/_includes/footer.html b/_includes/footer.html
index e579ed6..5f23406 100644
--- a/_includes/footer.html
+++ b/_includes/footer.html
@@ -1,6 +1,6 @@
-
Thank you for reading this post. If you enjoyed the content, and want to let me know, or diff --git a/_sass/site/codeblock.scss b/_sass/site/codeblock.scss index ab37b58..409d888 100644 --- a/_sass/site/codeblock.scss +++ b/_sass/site/codeblock.scss @@ -12,6 +12,7 @@ pre { div.highlighter-rouge { position: relative; + break-inside: avoid; } div.highlighter-rouge::after { diff --git a/_sass/site/print.scss b/_sass/site/print.scss new file mode 100644 index 0000000..1250a85 --- /dev/null +++ b/_sass/site/print.scss @@ -0,0 +1,22 @@ +@media print { + @page { + margin: 0.5in; + } + + h1, + h2, + h3, + h4, + h5 { + page-break-before: auto; + page-break-after: avoid; + } + + p { + page-break-inside: avoid; + } + + .print-hidden { + display: none !important; + } + } \ No newline at end of file diff --git a/assets/css/site.scss b/assets/css/site.scss index 1eba2c6..04f03f0 100644 --- a/assets/css/site.scss +++ b/assets/css/site.scss @@ -11,6 +11,7 @@ @import "site/page.scss"; @import "site/kbd.scss"; @import "site/codeblock.scss"; +@import "site/print.scss"; @import "site/dev/landing.scss"; @import "site/dev/software-landing.scss";