Use Mustache templates for site URL so that the username can be inserted anywhere in the template rather than only at the end
This commit is contained in:
parent
7b2c1681eb
commit
bbe563dee7
6 changed files with 41 additions and 8 deletions
|
@ -18,8 +18,8 @@
|
|||
<a .u-email itemprop="email" rel="me" href="mailto:#{userEmail user}">
|
||||
<i .fa.fa-envelope>
|
||||
#{userEmail user}
|
||||
$forall (site, profile) <- userProfiles
|
||||
$forall ((site, template), profile) <- userProfiles
|
||||
<li>
|
||||
<a .u-url itemprop="sameAs" rel="me" href="#{siteUrl site}#{profileUsername profile}">
|
||||
<a .u-url itemprop="sameAs" rel="me" href="#{substitute template profile}">
|
||||
<i .fa.fa-#{siteIcon site}>
|
||||
#{profileUsername profile}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue