diff --git a/themes/beautifulhugo/static/css/main.css b/themes/beautifulhugo/static/css/main.css
index 2566e3c4692a14b5f62360609c23f17498795836..5bad6925fc6677611051bc432e0a0c8cbcb8029e 100644
--- a/themes/beautifulhugo/static/css/main.css
+++ b/themes/beautifulhugo/static/css/main.css
@@ -24,6 +24,8 @@ h1,h2,h3,h4,h5,h6 {
   color: #3a5a80;
   margin-top: -60px;
   padding-top: 80px;
+  break-after: avoid-page;
+  page-break-after: avoid;
 }
 
 a {