···
%} {% elif section.description %} {% set description = section.description |
truncate(length=150) %} {% elif config.description %} {% set description =
config.description | truncate(length=150) %} {% endif %} {% if page.extra.image
23
-
%} {% set image = get_url(path=current_path ~"og.png", trailing_slash=false) %}
24
-
{% elif section.extra.image %} {% set image = get_url(path=section.extra.image,
23
+
%} {% set image = get_url(path=page.extra.image, trailing_slash=false) %} {%
24
+
elif section.extra.image %} {% set image = get_url(path=section.extra.image,
trailing_slash=false) %} {% elif page.path %} {% set image =
26
-
get_url(path=page.path ~ "og.png", trailing_slash=false) %} {% else %} {% set
27
-
image = get_url(path="og.png", trailing_slash=false) %} {% endif %} {% if
28
-
page.permalink %} {% set url = page.permalink %} {% elif section.permalink %} {%
29
-
set url = section.permalink %} {% elif config.base_url %} {% set url =
30
-
config.base_url %} {% endif %} {% if title %}
26
+
get_url(path=page.path ~ "og.png", trailing_slash=false) %} {% elif current_path
27
+
%} {% set image = get_url(path=current_path ~ "og.png", trailing_slash=false) %}
28
+
{% else %} {% set image = get_url(path="og.png", trailing_slash=false) %} {%
29
+
endif %} {% if page.permalink %} {% set url = page.permalink %} {% elif
30
+
section.permalink %} {% set url = section.permalink %} {% elif config.base_url
31
+
%} {% set url = config.base_url %} {% endif %} {% if title %} {% if current_url
32
+
and url != current_url %} {% set url = get_url(path=current_path,
33
+
trailing_slash=true) %} {% endif %}
<title>{{ title }}</title>
{% endif %} {% block metatags %} {% if title %}
<meta name="title" content="{{ title }}" />