+ {{ if (isset $page.Params.author 0) }}
+ {{ range $elem_index, $elem_val := $page.Params.author }}
+ {{ $initialEmail := delimit (findRE `<.*@.*>` $elem_val) "" }}
+ {{ $initialLogin := delimit (findRE `\(@.*\)` $elem_val) "" }}
+ {{ $initialLink := delimit (findRE `\([^@].*\)` $elem_val) "" }}
+ {{ $nameWithoutEmail := trim (substr $elem_val 0 (sub (len $elem_val) (len $initialEmail))) " " }}
+ {{ $nameWithoutLogin := trim (substr $elem_val 0 (sub (len $elem_val) (len $initialLogin))) " " }}
+ {{ $nameWithoutLink := trim (substr $elem_val 0 (sub (len $elem_val) (len $initialLink))) " " }}
+
+
+ {{ if $initialEmail }}
+ {{ $nameWithoutEmail }}
+
+ {{ $email := slicestr $initialEmail 1 (sub (len $initialEmail) 1) }}
+
+
+ {{ else if ($initialLogin) }}
+ {{ $nameWithoutLogin }}
+
+ {{ $login := slicestr $initialLogin 1 (sub (len $initialLogin) 1) }}
+ {{ $linkLogin := trim $login "@" }}
+
+
+ {{ else if ($initialLink) }}
+ {{ $nameWithoutLink }}
+
+ {{ $link := slicestr $initialLink 1 (sub (len $initialLink) 1) }}
+
+
+ {{ else }}
+ {{ $elem_val }}
+ {{ end }}
+
+ {{ if gt (sub (len $page.Params.author) 1) $elem_index }}
+
,
+ {{end}}
+ {{ end }}
+ {{ else }}
+ {{ $initialEmail := delimit (findRE `<.*@.*>` $page.Params.author) "" }}
+ {{ $initialLogin := delimit (findRE `\(@.*\)` $page.Params.author) "" }}
+ {{ $initialLink := delimit (findRE `\([^@].*\)` $page.Params.author) "" }}
+ {{ $nameWithoutEmail := trim (substr $page.Params.author 0 (sub (len $page.Params.author) (len $initialEmail))) " " }}
+ {{ $nameWithoutLogin := trim (substr $page.Params.author 0 (sub (len $page.Params.author) (len $initialLogin))) " " }}
+ {{ $nameWithoutLink := trim (substr $page.Params.author 0 (sub (len $page.Params.author) (len $initialLink))) " " }}
+
+
+ {{ if $initialEmail }}
+ {{ $nameWithoutEmail }}
+
+ {{ $email := slicestr $initialEmail 1 (sub (len $initialEmail) 1) }}
+
+
+ {{ else if ($initialLogin) }}
+ {{ $nameWithoutLogin }}
+
+ {{ $login := slicestr $initialLogin 1 (sub (len $initialLogin) 1) }}
+ {{ $linkLogin := trim $login "@" }}
+
+
+ {{ else if ($initialLink) }}
+ {{ $nameWithoutLink }}
+
+ {{ $link := slicestr $initialLink 1 (sub (len $initialLink) 1) }}
+
+
+ {{ else }}
+ {{ $page.Params.author }}
+ {{ end }}
+
+ {{ end }}
+
+