aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorChristine Dodrill <me@christine.website>2020-12-02 16:16:58 -0500
committerGitHub <noreply@github.com>2020-12-02 16:16:58 -0500
commit233ea76204ea5bc9a7d8f12816a9525b7a732bc5 (patch)
treede0ef2b37a6b8ee04f51eee3169ab29a472fa031 /templates
parentd35f62351f800115e7f6aef7fd0791b9ac608229 (diff)
downloadxesite-233ea76204ea5bc9a7d8f12816a9525b7a732bc5.tar.xz
xesite-233ea76204ea5bc9a7d8f12816a9525b7a732bc5.zip
add webmention support (#274)
* add webmention support Signed-off-by: Christine Dodrill <me@christine.website> * add webmention integration post Signed-off-by: Christine Dodrill <me@christine.website>
Diffstat (limited to 'templates')
-rw-r--r--templates/blogpost.rs.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/templates/blogpost.rs.html b/templates/blogpost.rs.html
index 29cfd74..dd3a9da 100644
--- a/templates/blogpost.rs.html
+++ b/templates/blogpost.rs.html
@@ -62,6 +62,18 @@
<p>Tags: @for tag in post.front_matter.tags.as_ref().unwrap() { <code>@tag</code> }</p>
}
+@if post.mentions.len() != 0 {
+ <p>This post was <a href="https://www.w3.org/TR/webmention/">WebMention</a>ed at the following URLs:
+ <ul>
+ @for mention in post.mentions {
+ <li><a href="@mention.source">@mention.title.unwrap_or(mention.source)</a></li>
+ }
+ </ul>
+ </p>
+} else {
+ <p>This post was not <a href="https://www.w3.org/TR/webmention/">WebMention</a>ed yet. You could be the first!</p>
+}
+
<p>The art for Mara was drawn by <a href="https://selic.re/">Selicre</a>.</p>
<script>