diff --git a/src/articles/models.py b/src/articles/models.py
index 90c584c..c148275 100644
--- a/src/articles/models.py
+++ b/src/articles/models.py
@@ -81,6 +81,10 @@ class Article(models.Model):
def get_absolute_url(self):
return reverse("article-detail", kwargs={"slug": self.slug})
+ def get_mailto_url(self):
+ email = settings.BLOG["email"]
+ return f"mailto:{email}?subject={self.title}"
+
def get_abstract(self):
html = self.get_formatted_content
return html.split("")[0]
diff --git a/src/articles/static/public.css b/src/articles/static/public.css
index ef41fe2..396800d 100644
--- a/src/articles/static/public.css
+++ b/src/articles/static/public.css
@@ -27,3 +27,13 @@ nav a:not(:first-child):before, a.tag:not(:first-of-type):before {
text-decoration: none;
display: inline-block;
}
+
+#reply {
+ text-align: center;
+ margin-top: 2em;
+}
+
+#reply a button {
+ font-size: 1.2rem;
+ padding: 8px 16px;
+}
diff --git a/src/articles/templates/articles/article_detail.html b/src/articles/templates/articles/article_detail.html
index db14712..b8a206e 100644
--- a/src/articles/templates/articles/article_detail.html
+++ b/src/articles/templates/articles/article_detail.html
@@ -15,6 +15,11 @@
{{ article.get_formatted_content|safe }}
+
{% if article.get_related_articles %}
diff --git a/src/blog/settings.py b/src/blog/settings.py
index f48e19b..02da174 100644
--- a/src/blog/settings.py
+++ b/src/blog/settings.py
@@ -216,6 +216,7 @@ AUTH_USER_MODEL = "articles.User"
BLOG = {
"title": "Gab's Notes",
"author": "Gabriel Augendre",
+ "email": "ga-notes@augendre.info",
"description": "My take on tech-related subjects (but not only).",
"base_url": env("BLOG_BASE_URL"),
"repo": {