From 2939d45eccceda23d66f0ae4ec24c1a7992d7291 Mon Sep 17 00:00:00 2001 From: Lars Olesen Date: Tue, 22 Aug 2017 20:46:18 +0200 Subject: [PATCH] Do not print the comments form (#1195) Add `.page__comments-form` to "non-printing" selectors in print styles --- _includes/comments.html | 80 +++++++++++++++--------------- _sass/minimal-mistakes/_print.scss | 3 +- 2 files changed, 43 insertions(+), 40 deletions(-) diff --git a/_includes/comments.html b/_includes/comments.html index 6f57edc95042..1df73b3d4ea0 100644 --- a/_includes/comments.html +++ b/_includes/comments.html @@ -47,49 +47,51 @@

{{ site.data.ui-text[site.locale].comments_titl -

{{ site.data.ui-text[site.locale].comments_label | default: "Leave a Comment" }}

-

{{ site.data.ui-text[site.locale].comment_form_info | default: "Your email address will not be published. Required fields are marked" }} *

-
-
- - {{ site.data.ui-text[site.locale].loading_label | default: "Loading..." }} -
+
+

{{ site.data.ui-text[site.locale].comments_label | default: "Leave a Comment" }}

+

{{ site.data.ui-text[site.locale].comment_form_info | default: "Your email address will not be published. Required fields are marked" }} *

+ +
+ + {{ site.data.ui-text[site.locale].loading_label | default: "Loading..." }} +
-
- - - -
-
- - -
-
- - -
-
- - -
- - - - -
- -
- +
+ + + +
+
+ + +
+
+ + +
+
+ + +
+ + + + +
+ +
+ +
{% endif %} {% when "custom" %}
{% endcase %} - \ No newline at end of file + diff --git a/_sass/minimal-mistakes/_print.scss b/_sass/minimal-mistakes/_print.scss index c4992dcb7bb8..468dd0fca811 100644 --- a/_sass/minimal-mistakes/_print.scss +++ b/_sass/minimal-mistakes/_print.scss @@ -228,6 +228,7 @@ .pagination, .ads, .page__footer, + .page__comments-form, .author__avatar, .author__content, .author__urls-wrapper, @@ -235,4 +236,4 @@ .adsbygoogle { display: none !important; } -} \ No newline at end of file +}