mirror of
				https://github.com/Wonderfall/hugo-WonderMod.git
				synced 2025-10-31 03:45:24 +01:00 
			
		
		
		
	Remove target="_blank" from links
This commit is contained in:
		| @@ -15,7 +15,7 @@ | ||||
|  | ||||
| <div class="share-buttons"> | ||||
|     {{- if (cond ($custom) (in $ShareButtons "twitter") (true)) }} | ||||
|     <a target="_blank" rel="noopener noreferrer" aria-label="share {{ $title | plainify }} on twitter" | ||||
|     <a rel="noopener noreferrer" aria-label="share {{ $title | plainify }} on twitter" | ||||
|         href="https://twitter.com/intent/tweet/?text={{ $title }}&url={{ $pageurl }}&hashtags={{- $.Scratch.Get "tags" -}}"> | ||||
|         <svg version="1.1" viewBox="0 0 512 512" xml:space="preserve" height="30px" width="30px" fill="currentColor"> | ||||
|             <path | ||||
| @@ -24,7 +24,7 @@ | ||||
|     </a> | ||||
|     {{- end }} | ||||
|     {{- if (cond ($custom) (in $ShareButtons "linkedin") (true)) }} | ||||
|     <a target="_blank" rel="noopener noreferrer" aria-label="share {{ $title | plainify }} on linkedin" | ||||
|     <a rel="noopener noreferrer" aria-label="share {{ $title | plainify }} on linkedin" | ||||
|         href="https://www.linkedin.com/shareArticle?mini=true&url={{ $pageurl }}&title={{ $title }}&summary={{ $title }}&source={{ $pageurl }}"> | ||||
|         <svg version="1.1" viewBox="0 0 512 512" xml:space="preserve" height="30px" width="30px" fill="currentColor"> | ||||
|             <path | ||||
| @@ -33,7 +33,7 @@ | ||||
|     </a> | ||||
|     {{- end }} | ||||
|     {{- if (cond ($custom) (in $ShareButtons "reddit") (true)) }} | ||||
|     <a target="_blank" rel="noopener noreferrer" aria-label="share {{ $title | plainify }} on reddit" | ||||
|     <a rel="noopener noreferrer" aria-label="share {{ $title | plainify }} on reddit" | ||||
|         href="https://reddit.com/submit?url={{ $pageurl }}&title={{ $title }}"> | ||||
|         <svg version="1.1" viewBox="0 0 512 512" xml:space="preserve" height="30px" width="30px" fill="currentColor"> | ||||
|             <path | ||||
| @@ -42,7 +42,7 @@ | ||||
|     </a> | ||||
|     {{- end }} | ||||
|     {{- if (cond ($custom) (in $ShareButtons "facebook") (true)) }} | ||||
|     <a target="_blank" rel="noopener noreferrer" aria-label="share {{ $title | plainify }} on facebook" | ||||
|     <a rel="noopener noreferrer" aria-label="share {{ $title | plainify }} on facebook" | ||||
|         href="https://facebook.com/sharer/sharer.php?u={{ $pageurl }}"> | ||||
|         <svg version="1.1" viewBox="0 0 512 512" xml:space="preserve" height="30px" width="30px" fill="currentColor"> | ||||
|             <path | ||||
| @@ -51,7 +51,7 @@ | ||||
|     </a> | ||||
|     {{- end }} | ||||
|     {{- if (cond ($custom) (in $ShareButtons "whatsapp") (true)) }} | ||||
|     <a target="_blank" rel="noopener noreferrer" aria-label="share {{ $title | plainify }} on whatsapp" | ||||
|     <a rel="noopener noreferrer" aria-label="share {{ $title | plainify }} on whatsapp" | ||||
|         href="https://api.whatsapp.com/send?text={{ $title }}%20-%20{{ $pageurl }}"> | ||||
|         <svg version="1.1" viewBox="0 0 512 512" xml:space="preserve" height="30px" width="30px" fill="currentColor"> | ||||
|             <path | ||||
| @@ -60,7 +60,7 @@ | ||||
|     </a> | ||||
|     {{- end }} | ||||
|     {{- if (cond ($custom) (in $ShareButtons "telegram") (true)) }} | ||||
|     <a target="_blank" rel="noopener noreferrer" aria-label="share {{ $title | plainify }} on telegram" | ||||
|     <a rel="noopener noreferrer" aria-label="share {{ $title | plainify }} on telegram" | ||||
|         href="https://telegram.me/share/url?text={{ $title }}&url={{ $pageurl }}"> | ||||
|         <svg version="1.1" xml:space="preserve" viewBox="2 2 28 28" height="30px" width="30px" fill="currentColor"> | ||||
|             <path | ||||
| @@ -68,4 +68,4 @@ | ||||
|         </svg> | ||||
|     </a> | ||||
|     {{- end }} | ||||
| </div> | ||||
| </div> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jonah Aragon
					Jonah Aragon