mirror of
				https://github.com/BBaoVanC/bobatheme.git
				synced 2025-10-30 17:53:28 -05:00 
			
		
		
		
	Add print button
This commit is contained in:
		| @@ -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> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user