added a activitypub url if the plugin is configured
This commit is contained in:
parent
b7e0b32909
commit
5e600385ad
3 changed files with 12 additions and 0 deletions
|
@ -5,6 +5,8 @@
|
|||
<meta name="description" content="{{ article.summary|striptags|escape }}" />
|
||||
<meta name="keywords" content="{{ article.tags|join(', ')|escape }}">
|
||||
|
||||
{% if PLUGINS and 'pelican.plugins.activitypub' in PLUGINS %}<link rel="alternate" type="application/activity+json" href="{{ SITEURL }}/activitypub/posts/{{ article.slug }}">{% endif %}
|
||||
|
||||
{% if article.translations -%}
|
||||
<link rel="alternate" href="{{ SITEURL }}/{{ article.url }}" hreflang="{{ article.lang }}" />
|
||||
{% for a in article.translations %}
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
{% extends "index.html" %}
|
||||
|
||||
{% block meta %}
|
||||
{% if PLUGINS and 'pelican.plugins.activitypub' in PLUGINS %}<link rel="alternate" type="application/activity+json" href="{{ SITEURL }}/activitypub/users/{{ author }}">{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block title %} – {{ _('Posts by %(name)s', name=author) }}:{% endblock %}
|
||||
{% set summarise = True %}
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
{% extends "index.html" %}
|
||||
|
||||
{% block meta %}
|
||||
{% if PLUGINS and 'pelican.plugins.activitypub' in PLUGINS %}<link rel="alternate" type="application/activity+json" href="{{ SITEURL }}/activitypub/tags/{{ tag }}">{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block title %} – {{ _('Tag %(name)s', name=tag) }}{% endblock %}
|
||||
{% set summarise = True %}
|
||||
|
|
Loading…
Reference in a new issue