Skip to content

Commit b4eaa6b

Browse files
committed
switch to mailto
1 parent 70cbc12 commit b4eaa6b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.eleventy.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ module.exports = function (eleventyConfig) {
9797
return hoverableHTML;
9898
});
9999

100+
eleventyConfig.addFilter("encodeURI", (link) => {
101+
return encodeURI(link);
102+
});
103+
100104
// Date formatting stuff
101105
eleventyConfig.addFilter("readableDate", (dateObj) => {
102106
return DateTime.fromJSDate(dateObj).toFormat("MMM dd, yyyy");

_includes/footer.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<footer>
22
<a href="https://cyberb.space/feed.xml">subscribe</a> |
33
<a href="https://github.com/riastrad/cyberbspace/tree/main/{{ page.inputPath }}">view source</a> |
4-
<a href="{{ metadata.author.social }}">discuss</a>
4+
<a href="mailto:{{ metadata.author.email }}?subject=[cyberbspace] thoughts on {{ page.url | encodeURI }}">discuss</a>
55
<p>
66
&copy; Josh Erb {{ page.date | dateYear }}
77
</p>

0 commit comments

Comments
 (0)