From b272ed6181701585c69a8065fa8992d4a30e5ee1 Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Sun, 8 May 2022 15:12:13 -0500 Subject: [PATCH] Hide "View source" button when printing --- assets/css/bobastyle.css | 1 + layouts/partials/post-meta-item/viewsource.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/css/bobastyle.css b/assets/css/bobastyle.css index 68e3ea8..18ed719 100644 --- a/assets/css/bobastyle.css +++ b/assets/css/bobastyle.css @@ -761,6 +761,7 @@ li.disabled > .page-link:hover { @media print { .top, .section-header-link, + .post-meta-view-source, .prevnext, .share-buttons, .related-posts, diff --git a/layouts/partials/post-meta-item/viewsource.html b/layouts/partials/post-meta-item/viewsource.html index 15c7989..667a041 100644 --- a/layouts/partials/post-meta-item/viewsource.html +++ b/layouts/partials/post-meta-item/viewsource.html @@ -1,5 +1,5 @@ {{ if and .Site.Params.gitFileURL .File.Path }} - +