mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-12-22 04:13:17 -06:00
Add print button
This commit is contained in:
parent
9665133ba4
commit
7dd01894da
@ -357,12 +357,17 @@
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.share-buttons button,
|
||||
.share-buttons a {
|
||||
background-color: var(--background-2);
|
||||
padding: 4px;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.share-buttons button {
|
||||
border: none;
|
||||
}
|
||||
|
||||
.share-buttons svg {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
|
@ -41,6 +41,7 @@ params:
|
||||
# linkedin: true
|
||||
# reddit: true
|
||||
# telegram: true
|
||||
# print: true
|
||||
|
||||
# show "Latest Posts" section at bottom of content pages
|
||||
# latestPostsOnContent: true
|
||||
|
@ -52,4 +52,11 @@
|
||||
</a>
|
||||
{{ end }}
|
||||
*/}}
|
||||
|
||||
{{ if .Site.Params.shareButtons.print }}
|
||||
<button class="print-share"
|
||||
onclick="window.print(); share_event('Print');">
|
||||
{{- partial "icon.html" "printer" -}}
|
||||
</button>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user