Compare commits

...

1 commit

Author SHA1 Message Date
04cf605ae8 added a activitypub url if the plugin is configured 2024-10-15 14:12:11 +02:00

View file

@ -5,6 +5,10 @@
<meta name="description" content="{{ article.summary|striptags|escape }}" /> <meta name="description" content="{{ article.summary|striptags|escape }}" />
<meta name="keywords" content="{{ article.tags|join(', ')|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 -%} {% if article.translations -%}
<link rel="alternate" href="{{ SITEURL }}/{{ article.url }}" hreflang="{{ article.lang }}" /> <link rel="alternate" href="{{ SITEURL }}/{{ article.url }}" hreflang="{{ article.lang }}" />
{% for a in article.translations %} {% for a in article.translations %}