~mcornick/www

16d59b1e4f7069ca0fc75709d003f6d9cbe92d65 — Mark Cornick 4 days ago e3086de
Go back to the site-specific emails

An experiment to see who reads these pages.

This reverts commit e3086deea53d68010a3c7291d4ab69ea75bd61bb.
This reverts commit d372d204c3d0da449699376a5f544e7723031914.
M content/_index.md => content/_index.md +1 -2
@@ 28,5 28,4 @@ Recently on my blog:
* {{< melink link="https://toobnix.org/accounts/mcornick" title="peertube" >}}
* {{< melink link="twtxt.txt" title="twtxt" >}}

You can mail me at <mcornick@mcornick.com>.
You can use [this PGP key](pgpkey.asc) if you want to encrypt it.
{{< maillink >}}

M layouts/index.gemini.gmi => layouts/index.gemini.gmi +1 -1
@@ 25,5 25,5 @@ Recently on my blog:

=>{{ " " }}twtxt.txt{{ " " }}twtxt

You can mail me at mcornick@mcornick.com.
You can mail me at {{ print "mcornick@" (index (split .Site.BaseURL "/") 2 | replaceRE "^(.*)[.](.*)[.](.*)$" "$2.$3") }}.
=>{{ " " }}pgpkey.asc{{ " " }}PGP{{ " " }}key

M layouts/index.geomyidae.gph => layouts/index.geomyidae.gph +1 -1
@@ 28,7 28,7 @@ Recently on my blog:

[0|twtxt|{{ template "link1" .Site.GetPage "/" }}/twtxt.txt|{{ $hostname }}|70]

You can mail me at mcornick@mcornick.com.
You can mail me at {{ print "mcornick@" $hostname }}.
[0|PGP key|{{ template "link1" .Site.GetPage "/" }}/pgpkey.asc|{{ $hostname }}|70]
{{- define "link0" -}}
{{- .Page.Permalink | relURL | replaceRE "^.(.*).html$" "$1/" | replaceRE "^[/]?[01]" "" -}}

M layouts/index.gopher.txt => layouts/index.gopher.txt +1 -1
@@ 28,7 28,7 @@ Recently on my blog:

0twtxt{{ "\t" }}{{ template "link1" .Site.GetPage "/" }}/twtxt.txt{{ "\t" }}{{ $hostname }}{{ "\t" }}70

You can mail me at mcornick@mcornick.com.
You can mail me at {{ print "mcornick@" $hostname }}.
0PGP key{{ "\t" }}{{ template "link1" .Site.GetPage "/" }}/pgpkey.asc{{ "\t" }}{{ $hostname }}{{ "\t" }}70
{{- define "link0" -}}
{{- .Page.Permalink | relURL | replaceRE "^.(.*).html$" "$1/" | replaceRE "^[/]?[01]" "" -}}

A layouts/shortcodes/maillink.html => layouts/shortcodes/maillink.html +11 -0
@@ 0,0 1,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 -}}