Hide "View source" button when printing

This commit is contained in:
BBaoVanC 2022-05-08 15:12:13 -05:00
parent 17918a5617
commit b272ed6181
Signed by: bbaovanc
GPG Key ID: 18089E4E3CCF1D3A
2 changed files with 2 additions and 1 deletions

View File

@ -761,6 +761,7 @@ li.disabled > .page-link:hover {
@media print { @media print {
.top, .top,
.section-header-link, .section-header-link,
.post-meta-view-source,
.prevnext, .prevnext,
.share-buttons, .share-buttons,
.related-posts, .related-posts,

View File

@ -1,5 +1,5 @@
{{ if and .Site.Params.gitFileURL .File.Path }} {{ if and .Site.Params.gitFileURL .File.Path }}
<span class="post-meta-item" aria-label="{{ i18n "aria_post_meta_view_source" }}"> <span class="post-meta-item post-meta-view-source" aria-label="{{ i18n "aria_post_meta_view_source" }}">
{{ with .Site.Params.gitFileIcon }} {{ with .Site.Params.gitFileIcon }}
{{ partial "icon.html" . }} {{ partial "icon.html" . }}
{{ else }} {{ else }}