From 2d9b486d7a5ec8bd4b9fadf9c45a86d96d421eb0 Mon Sep 17 00:00:00 2001 From: Jacob Bare Date: Tue, 2 Mar 2021 14:47:58 -0600 Subject: [PATCH] Optionally pass link attributes to contact website --- .../components/content/contact-details/index.marko | 4 +++- .../components/content/contact-details/marko.json | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/marko-web-theme-default/components/content/contact-details/index.marko b/packages/marko-web-theme-default/components/content/contact-details/index.marko index 873d3b71d..3f24e64ad 100644 --- a/packages/marko-web-theme-default/components/content/contact-details/index.marko +++ b/packages/marko-web-theme-default/components/content/contact-details/index.marko @@ -16,6 +16,8 @@ $ const fields = ["title", "website"]; $ if (showEmail) fields.push("publicEmail"); $ const showFields = fields.some(k => content[k]); +$ const websiteLinkAttrs = getAsObject(input, "websiteLinkAttrs"); + content[k]); - + diff --git a/packages/marko-web-theme-default/components/content/contact-details/marko.json b/packages/marko-web-theme-default/components/content/contact-details/marko.json index fac6c5add..2e7e1ba03 100644 --- a/packages/marko-web-theme-default/components/content/contact-details/marko.json +++ b/packages/marko-web-theme-default/components/content/contact-details/marko.json @@ -12,7 +12,8 @@ }, "@class": "string", "@modifiers": "array", - "@attrs": "object" + "@attrs": "object", + "@website-link-attrs": "object" }, "": { "template": "./section.marko",