mirror of
https://github.com/pawroman/zola-theme-terminimal.git
synced 2025-11-19 07:30:24 +01:00
Add mastodon support
This commit is contained in:
parent
c620187811
commit
3abae6b153
3 changed files with 61 additions and 6 deletions
|
|
@ -26,6 +26,10 @@
|
|||
<link rel="shortcut icon" type="{{ config.extra.favicon_mimetype | default(value="image/x-icon") | safe }}" href="{{ config.extra.favicon | safe }}">
|
||||
{% endif -%}
|
||||
|
||||
{%- if config.extra.mastodon_url %}
|
||||
{%- block mastodon %}{{ head_macros::mastodon(config=config) }}{% endblock mastodon -%}
|
||||
{% endif -%}
|
||||
|
||||
{%- block extra_head %}
|
||||
{% endblock extra_head -%}
|
||||
</head>
|
||||
|
|
|
|||
|
|
@ -92,3 +92,7 @@
|
|||
<meta property="twitter:domain" content="{{ config.base_url | replace(from="https://", to="") }}">
|
||||
<meta property="twitter:url" content="{{ permalink | safe }}">
|
||||
{% endmacro open_graph %}
|
||||
|
||||
{% macro mastodon(config) %}
|
||||
<link rel="me" href="{{ config.extra.mastodon_url }}" />
|
||||
{% endmacro mastodon %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue