Add the ability to choose if links on project cards open in a new tab
This commit is contained in:
		
							parent
							
								
									0a8507401c
								
							
						
					
					
						commit
						454d4c1dc8
					
				| 
						 | 
					@ -4,12 +4,15 @@
 | 
				
			||||||
	description = "A web based tool for managing reusable pieces of code and useful programming resources"
 | 
						description = "A web based tool for managing reusable pieces of code and useful programming resources"
 | 
				
			||||||
	[[project.links]]
 | 
						[[project.links]]
 | 
				
			||||||
		title = "Web Client"
 | 
							title = "Web Client"
 | 
				
			||||||
 | 
							external = true
 | 
				
			||||||
		URL = "https://snippets.neilbrommer.com/"
 | 
							URL = "https://snippets.neilbrommer.com/"
 | 
				
			||||||
	[[project.links]]
 | 
						[[project.links]]
 | 
				
			||||||
		title = "Documentation"
 | 
							title = "Documentation"
 | 
				
			||||||
 | 
							external = true
 | 
				
			||||||
		URL = "https://snippets.neilbrommer.com/documentation.html"
 | 
							URL = "https://snippets.neilbrommer.com/documentation.html"
 | 
				
			||||||
	[[project.links]]
 | 
						[[project.links]]
 | 
				
			||||||
		title = "Source Code"
 | 
							title = "Source Code"
 | 
				
			||||||
 | 
							external = true
 | 
				
			||||||
		URL = "https://github.com/NeilBrommer/SnippetManager"
 | 
							URL = "https://github.com/NeilBrommer/SnippetManager"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[[project]]
 | 
					[[project]]
 | 
				
			||||||
| 
						 | 
					@ -18,9 +21,11 @@
 | 
				
			||||||
	description = "A new tab page that displays lists of links using the browser's indexedDB to store all data"
 | 
						description = "A new tab page that displays lists of links using the browser's indexedDB to store all data"
 | 
				
			||||||
	[[project.links]]
 | 
						[[project.links]]
 | 
				
			||||||
		title = "Site"
 | 
							title = "Site"
 | 
				
			||||||
 | 
							external = true
 | 
				
			||||||
		URL = "https://start.neilbrommer.com/"
 | 
							URL = "https://start.neilbrommer.com/"
 | 
				
			||||||
	[[project.links]]
 | 
						[[project.links]]
 | 
				
			||||||
		title = "Source Code"
 | 
							title = "Source Code"
 | 
				
			||||||
 | 
							external = true
 | 
				
			||||||
		URL = "https://github.com/NeilBrommer/NewTabPage"
 | 
							URL = "https://github.com/NeilBrommer/NewTabPage"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[[project]]
 | 
					[[project]]
 | 
				
			||||||
| 
						 | 
					@ -29,6 +34,7 @@
 | 
				
			||||||
	description = "A Windows program for viewing image files written using C# and WPF"
 | 
						description = "A Windows program for viewing image files written using C# and WPF"
 | 
				
			||||||
	[[project.links]]
 | 
						[[project.links]]
 | 
				
			||||||
		title = "Source Code"
 | 
							title = "Source Code"
 | 
				
			||||||
 | 
							external = true
 | 
				
			||||||
		URL = "https://github.com/NeilBrommer/PictureViewer"
 | 
							URL = "https://github.com/NeilBrommer/PictureViewer"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[[project]]
 | 
					[[project]]
 | 
				
			||||||
| 
						 | 
					@ -37,6 +43,7 @@
 | 
				
			||||||
	description = "The source code for this website"
 | 
						description = "The source code for this website"
 | 
				
			||||||
	[[project.links]]
 | 
						[[project.links]]
 | 
				
			||||||
		title = "Source Code"
 | 
							title = "Source Code"
 | 
				
			||||||
 | 
							external = true
 | 
				
			||||||
		URL = "https://github.com/NeilBrommer/Personal-Site"
 | 
							URL = "https://github.com/NeilBrommer/Personal-Site"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[[project]]
 | 
					[[project]]
 | 
				
			||||||
| 
						 | 
					@ -45,9 +52,11 @@
 | 
				
			||||||
	description = "My [Resume](resume)"
 | 
						description = "My [Resume](resume)"
 | 
				
			||||||
	[[project.links]]
 | 
						[[project.links]]
 | 
				
			||||||
		title = "PDF"
 | 
							title = "PDF"
 | 
				
			||||||
 | 
							external = true
 | 
				
			||||||
		URL = "/NeilBrommer-WebResume.pdf"
 | 
							URL = "/NeilBrommer-WebResume.pdf"
 | 
				
			||||||
	[[project.links]]
 | 
						[[project.links]]
 | 
				
			||||||
		title = "Source Code"
 | 
							title = "Source Code"
 | 
				
			||||||
 | 
							external = true
 | 
				
			||||||
		URL = "https://github.com/NeilBrommer/Resume"
 | 
							URL = "https://github.com/NeilBrommer/Resume"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[[project]]
 | 
					[[project]]
 | 
				
			||||||
| 
						 | 
					@ -56,4 +65,5 @@
 | 
				
			||||||
	description = "A small utility for setting/toggling the Windows 10 dark theme. Useful in combination with the Windows Task Scheduler to automatically change the theme."
 | 
						description = "A small utility for setting/toggling the Windows 10 dark theme. Useful in combination with the Windows Task Scheduler to automatically change the theme."
 | 
				
			||||||
	[[project.links]]
 | 
						[[project.links]]
 | 
				
			||||||
		title = "Source Code"
 | 
							title = "Source Code"
 | 
				
			||||||
 | 
							external = true
 | 
				
			||||||
		URL = "https://github.com/NeilBrommer/WindowsAutoDark"
 | 
							URL = "https://github.com/NeilBrommer/WindowsAutoDark"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -11,7 +11,11 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		{{ if isset . "links" }}
 | 
							{{ if isset . "links" }}
 | 
				
			||||||
			{{ range .links }}
 | 
								{{ range .links }}
 | 
				
			||||||
				<a class="card-link" href="{{ .URL }}" target="_blank">
 | 
									<a class="card-link" href="{{ .URL }}"
 | 
				
			||||||
 | 
											{{ if and (isset . "external") (eq .external true) }}
 | 
				
			||||||
 | 
											target="_blank"
 | 
				
			||||||
 | 
											{{ end }}
 | 
				
			||||||
 | 
											>
 | 
				
			||||||
					{{ .title }}
 | 
										{{ .title }}
 | 
				
			||||||
				</a>
 | 
									</a>
 | 
				
			||||||
			{{ end }}
 | 
								{{ end }}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue