From 454d4c1dc8d02a22d8b23780233d5510bc811970 Mon Sep 17 00:00:00 2001 From: NeilBrommer Date: Tue, 12 Jun 2018 11:32:42 -0700 Subject: [PATCH] Add the ability to choose if links on project cards open in a new tab --- data/projects.toml | 10 ++++++++++ layouts/partials/projectCard.html | 6 +++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/data/projects.toml b/data/projects.toml index 0e3739d..ce0082f 100644 --- a/data/projects.toml +++ b/data/projects.toml @@ -4,12 +4,15 @@ description = "A web based tool for managing reusable pieces of code and useful programming resources" [[project.links]] title = "Web Client" + external = true URL = "https://snippets.neilbrommer.com/" [[project.links]] title = "Documentation" + external = true URL = "https://snippets.neilbrommer.com/documentation.html" [[project.links]] title = "Source Code" + external = true URL = "https://github.com/NeilBrommer/SnippetManager" [[project]] @@ -18,9 +21,11 @@ description = "A new tab page that displays lists of links using the browser's indexedDB to store all data" [[project.links]] title = "Site" + external = true URL = "https://start.neilbrommer.com/" [[project.links]] title = "Source Code" + external = true URL = "https://github.com/NeilBrommer/NewTabPage" [[project]] @@ -29,6 +34,7 @@ description = "A Windows program for viewing image files written using C# and WPF" [[project.links]] title = "Source Code" + external = true URL = "https://github.com/NeilBrommer/PictureViewer" [[project]] @@ -37,6 +43,7 @@ description = "The source code for this website" [[project.links]] title = "Source Code" + external = true URL = "https://github.com/NeilBrommer/Personal-Site" [[project]] @@ -45,9 +52,11 @@ description = "My [Resume](resume)" [[project.links]] title = "PDF" + external = true URL = "/NeilBrommer-WebResume.pdf" [[project.links]] title = "Source Code" + external = true URL = "https://github.com/NeilBrommer/Resume" [[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." [[project.links]] title = "Source Code" + external = true URL = "https://github.com/NeilBrommer/WindowsAutoDark" diff --git a/layouts/partials/projectCard.html b/layouts/partials/projectCard.html index 7d40b96..61c7ebe 100644 --- a/layouts/partials/projectCard.html +++ b/layouts/partials/projectCard.html @@ -11,7 +11,11 @@ {{ if isset . "links" }} {{ range .links }} - + {{ .title }} {{ end }}