From e4b23a53f41bf415d53e9ddd3006d1793d59c61b Mon Sep 17 00:00:00 2001 From: Sascha Brendel Date: Tue, 28 Nov 2017 15:42:05 +0100 Subject: [PATCH] Implemented target option for the page content type as suggested by #31. --- archetypes/page.md | 2 ++ exampleSite/content/page/github.md | 2 ++ layouts/partials/topnav.html | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/archetypes/page.md b/archetypes/page.md index d0b7a2501..51490877e 100644 --- a/archetypes/page.md +++ b/archetypes/page.md @@ -5,4 +5,6 @@ draft: true # set the link if you want to redirect the user. link: "" +# set the html target parameter if you want to change default behavior +target: "_blank" --- diff --git a/exampleSite/content/page/github.md b/exampleSite/content/page/github.md index 30437092c..1d5e0a209 100644 --- a/exampleSite/content/page/github.md +++ b/exampleSite/content/page/github.md @@ -4,4 +4,6 @@ date: 2017-11-01T13:17:56+01:00 # set the link if you want to redirect the user. link: "https://github.com/Lednerb/bilberry-hugo-theme" +# set the html target parameter if you want to change default behavior +target: "_blank" --- diff --git a/layouts/partials/topnav.html b/layouts/partials/topnav.html index 5e41f5c4d..73251b003 100644 --- a/layouts/partials/topnav.html +++ b/layouts/partials/topnav.html @@ -7,7 +7,7 @@