From ef8329450d9e5e0623d185764f395334d1f49fca Mon Sep 17 00:00:00 2001 From: Will Faught Date: Sun, 24 Sep 2023 18:28:29 -0700 Subject: [PATCH] Change email address to be position 0 --- README.md | 2 +- layouts/shortcodes/paige/email.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cfe82f03..b4b722fe 100644 --- a/README.md +++ b/README.md @@ -472,7 +472,7 @@ Parameters:
address
-
Required. String. The e-mail address.
+
Required. Position 0. String. The e-mail address.
### Figure diff --git a/layouts/shortcodes/paige/email.html b/layouts/shortcodes/paige/email.html index f309f361..defa6dfd 100644 --- a/layouts/shortcodes/paige/email.html +++ b/layouts/shortcodes/paige/email.html @@ -1,4 +1,4 @@ -{{ $address := .Get "address" }} +{{ $address := .Get 0 | default (.Get "address") }} {{ $content := .Inner | markdownify }} {{ if not $address }}