diff --git a/static/css/print.css b/static/css/print.css new file mode 100644 index 0000000..332b551 --- /dev/null +++ b/static/css/print.css @@ -0,0 +1,45 @@ + +.breadcrumbs { + display: none; +} + +#render h1 { + background-color: #e12d2d; +} + +#sidebar { + display: none; +} + +#logo { + display: none; +} + +body{counter-reset: h1 h2 h3;} +h1:before { + content: counter(h1) " "; + counter-increment: h1; +} +h2:before { + content: counter(h1) "." counter(h2) " "; + counter-increment: h2; +} +h3:before { + content: counter(h1) "." counter(h2) "." counter(h3) " "; + counter-increment: h3; +} +h1 { + counter-reset: h2; +} +h2 { + counter-reset: h3; +} +h1.unnumbered, h2.unnumbered { + counter-reset: none; +} +h1.unnumbered:before, +h2.unnumbered:before, +h3.unnumbered:before{ + content: none; + counter-increment: none; +} diff --git a/views/layout.php b/views/layout.php index dc0ff48..05da047 100644 --- a/views/layout.php +++ b/views/layout.php @@ -32,7 +32,8 @@ function e($dirty) { <link rel="stylesheet" href="static/css/main.css"> <?php endif; ?> <link rel="stylesheet" href="static/css/custom.css"> - + <link rel="stylesheet" href="static/css/print.css" type="text/css" media="print"> + <meta name="description" content="<?php echo e($page['description']) ?>"> <meta name="keywords" content="<?php echo e(join(',', $page['tags'])) ?>"> <meta http-equiv="X-UA-Compatible" content="IE=edge">