~mcornick/www

ref: 16d59b1e4f7069ca0fc75709d003f6d9cbe92d65 www/layouts/shortcodes/maillink.html -rw-r--r-- 478 bytes
16d59b1eMark Cornick Go back to the site-specific emails 8 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
{{- if ne .Site.BaseURL "http://rw.rs/~mcornick/" -}}
<p>You can mail me at
{{ if eq .Site.BaseURL "https://markcornick.com/" }}
<a href="mailto:mark@markcornick.com">mark@markcornick.com</a>.
{{- else -}}
{{- $address := print "mcornick@" (index (split .Site.BaseURL "/") 2 | replaceRE "^(.*)[.](.*)[.](.*)$" "$2.$3") -}}
<a href="mailto:{{ $address }}">{{ $address }}</a>.
{{ end }}
You can use
<a href="pgpkey.asc">this PGP key</a> if you want to encrypt it.</p>
{{- end -}}