the home site for me: also iteration 3 or 4 of my site

chore: fix og url for tags pages

Changed files
+10 -7
templates
+10 -7
templates/head.html
···
%} {% 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
-
%} {% set image = get_url(path=current_path ~"og.png", trailing_slash=false) %}
-
{% elif section.extra.image %} {% set image = get_url(path=section.extra.image,
+
%} {% set image = get_url(path=page.extra.image, trailing_slash=false) %} {%
+
elif section.extra.image %} {% set image = get_url(path=section.extra.image,
trailing_slash=false) %} {% elif page.path %} {% set image =
-
get_url(path=page.path ~ "og.png", trailing_slash=false) %} {% else %} {% set
-
image = get_url(path="og.png", trailing_slash=false) %} {% endif %} {% if
-
page.permalink %} {% set url = page.permalink %} {% elif section.permalink %} {%
-
set url = section.permalink %} {% elif config.base_url %} {% set url =
-
config.base_url %} {% endif %} {% if title %}
+
get_url(path=page.path ~ "og.png", trailing_slash=false) %} {% elif current_path
+
%} {% set image = get_url(path=current_path ~ "og.png", trailing_slash=false) %}
+
{% else %} {% set image = get_url(path="og.png", trailing_slash=false) %} {%
+
endif %} {% if page.permalink %} {% set url = page.permalink %} {% elif
+
section.permalink %} {% set url = section.permalink %} {% elif config.base_url
+
%} {% set url = config.base_url %} {% endif %} {% if title %} {% if current_url
+
and url != current_url %} {% set url = get_url(path=current_path,
+
trailing_slash=true) %} {% endif %}
<title>{{ title }}</title>
{% endif %} {% block metatags %} {% if title %}
<meta name="title" content="{{ title }}" />