m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Chrzanowski <m@m-chrzan.xyz>2021-02-16 22:46:58 -0500
committerMarcin Chrzanowski <m@m-chrzan.xyz>2021-02-16 23:13:49 -0500
commitf882ee46a14329c9d669593c7404e254b455c623 (patch)
tree2b4534cb098204500e35e14bb1c591213eee305e
parent4bf167df5d0abee939bf3ebfa925c4fe22cd0502 (diff)
Link to self hosted email
-rw-r--r--lib/util.rb1
-rw-r--r--src/index.html.erb2
-rw-r--r--src/post-template.html.erb2
3 files changed, 3 insertions, 2 deletions
diff --git a/lib/util.rb b/lib/util.rb
index 48ac7e1..34e3686 100644
--- a/lib/util.rb
+++ b/lib/util.rb
@@ -2,6 +2,7 @@ require './lib/pather'
SourceDir = 'src'
BuildDir = 'public'
+Email = 'm@m-chrzan.xyz'
def src filename
File.join SourceDir, filename
diff --git a/src/index.html.erb b/src/index.html.erb
index 5517b36..122d6c2 100644
--- a/src/index.html.erb
+++ b/src/index.html.erb
@@ -17,7 +17,7 @@
<hr />
<ul class='links'>
- <li><a href='mailto:marcin.j.chrzanowski@gmail.com'>Email</a></li>
+ <li><a href='mailto:<%= Email %>'>Email</a></li>
<li><a href=<%= path_to 'key'%>>PGP</a></li>
<li>
<a href='https://git.m-chrzan.xyz'>Code</a>
diff --git a/src/post-template.html.erb b/src/post-template.html.erb
index 302e3b6..20b95be 100644
--- a/src/post-template.html.erb
+++ b/src/post-template.html.erb
@@ -2,5 +2,5 @@
<%= post['content'] %>
<p class='post-footer'>
If you have any questions or comments about this post or site in general, feel
-free to <a href="mailto:marcin.j.chrzanowski@gmail.com">email me</a>.
+free to <a href="mailto:<%= Email %>">email me</a>.
</p>