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

Configure Feed

Select the types of activity you want to include in your feed.

chore: fix og url for tags pages

+10 -7
+10 -7
templates/head.html
··· 20 20 %} {% elif section.description %} {% set description = section.description | 21 21 truncate(length=150) %} {% elif config.description %} {% set description = 22 22 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, 25 25 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 %} 31 34 <title>{{ title }}</title> 32 35 {% endif %} {% block metatags %} {% if title %} 33 36 <meta name="title" content="{{ title }}" />