mirror of
https://github.com/pawroman/zola-theme-terminimal.git
synced 2025-01-08 03:31:05 +01:00
wip
This commit is contained in:
parent
7f630a4e31
commit
ec2fe73ec8
14
README.md
14
README.md
|
@ -103,7 +103,9 @@ Example:
|
||||||
caption_style="font-style: italic;") }}
|
caption_style="font-style: italic;") }}
|
||||||
```
|
```
|
||||||
|
|
||||||
## OpenGraph
|
## Features
|
||||||
|
|
||||||
|
### OpenGraph
|
||||||
|
|
||||||
To add an image to a post, set the `og_image` extra option to the desired image
|
To add an image to a post, set the `og_image` extra option to the desired image
|
||||||
in the same directory of the markdown file:
|
in the same directory of the markdown file:
|
||||||
|
@ -121,6 +123,16 @@ Additionally, for the section pages and for posts to have a fallback image, add
|
||||||
default_og_image = "static/ocean.jpg"
|
default_og_image = "static/ocean.jpg"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Mastodon
|
||||||
|
|
||||||
|
To enable [Mastodon verification](https://docs.joinmastodon.org/user/profile/#verification), add
|
||||||
|
the following to your `config.toml`:
|
||||||
|
|
||||||
|
```toml
|
||||||
|
[extra]
|
||||||
|
mastodon_url = "https://hachyderm.io/@my_username_here"
|
||||||
|
```
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
### Only show the post's description
|
### Only show the post's description
|
||||||
|
|
|
@ -30,6 +30,10 @@
|
||||||
<link rel="shortcut icon" type="{{ config.extra.favicon_mimetype | default(value="image/x-icon") | safe }}" href="{{ config.extra.favicon | safe }}">
|
<link rel="shortcut icon" type="{{ config.extra.favicon_mimetype | default(value="image/x-icon") | safe }}" href="{{ config.extra.favicon | safe }}">
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
|
|
||||||
|
{%- if config.extra.mastodon_url %}
|
||||||
|
{%- block mastodon %}{{ head_macros::mastodon(config=config) }}{% endblock mastodon -%}
|
||||||
|
{% endif -%}
|
||||||
|
|
||||||
{%- block extra_head %}
|
{%- block extra_head %}
|
||||||
{% endblock extra_head -%}
|
{% endblock extra_head -%}
|
||||||
</head>
|
</head>
|
||||||
|
|
|
@ -92,3 +92,7 @@
|
||||||
<meta property="twitter:domain" content="{{ config.base_url | replace(from="https://", to="") }}">
|
<meta property="twitter:domain" content="{{ config.base_url | replace(from="https://", to="") }}">
|
||||||
<meta property="twitter:url" content="{{ permalink | safe }}">
|
<meta property="twitter:url" content="{{ permalink | safe }}">
|
||||||
{% endmacro open_graph %}
|
{% endmacro open_graph %}
|
||||||
|
|
||||||
|
{% macro mastodon(config) %}
|
||||||
|
<link rel="me" href="{{ config.extra.mastodon_url }}" />
|
||||||
|
{% endmacro mastodon %}
|
||||||
|
|
Loading…
Reference in a new issue