Add themes folder
This commit is contained in:
parent
78eab7dcac
commit
077da5b941
108 changed files with 6225 additions and 0 deletions
10
themes/airspace-hugo/layouts/partials/cloak_email.html
Normal file
10
themes/airspace-hugo/layouts/partials/cloak_email.html
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{{/* Cloak an e-mail address (first argument) */ -}}
|
||||
{{- $address_parts := split . "@" -}}
|
||||
{{- if (eq (len $address_parts) 2) -}}
|
||||
{{- $user := index $address_parts 0 -}}
|
||||
{{- $domain := index $address_parts 1 -}}
|
||||
<span class="cloaked-e-mail" data-user="{{ range $index := seq (sub (len $user) 1) 0 }}{{ substr $user $index 1 }}{{ end }}" data-domain="{{ range $index := seq (sub (len $domain) 1) 0 }}{{ substr $domain $index 1 }}{{ end }}"></span>
|
||||
{{- else -}}
|
||||
<span>INVALID E-MAIL ADDRESS</span>
|
||||
{{- end -}}
|
||||
{{- /* Dummy comment to strip trailing newline */ -}}
|
||||
Loading…
Add table
Add a link
Reference in a new issue