Skip to content

Template Tags

Michael Beaton edited this page Nov 2, 2022 · 5 revisions

{% webmentions_endpoint %}

Include this in your HTML head to help other websites find your webmention endpoint.

{% load webmentions %}
<html>
  <head>
    ...
    <!-- Renders as <link rel="webmention" href="/webmention/" /> -->
    {% webmentions_endpoint %}
  </head>
  <body>
    ...
  </body>
</html>

{% webmentions_dashboard %}

Insert a clickable link to your webmentions dashboard.

{% load webmentions %}
<body>
  <!-- Renders as <a href="/webmention/dashboard/">Webmentions Dashboard</a> -->
  {% webmentions_dashboard %}

  <!-- Renders as <a href="/webmention/dashboard/">Custom text</a> -->
  {% webmentions_dashboard "Custom text" %}
</body>