blog fixes

This commit is contained in:
timurgordon
2022-09-12 11:58:42 +03:00
parent 769e8bd6f8
commit 095fbd0e31
2 changed files with 9 additions and 4 deletions

View File

@@ -3,7 +3,8 @@
{% if page.taxonomies.people %} {% if page.taxonomies.people %}
{% set people = get_section(path="people/_index.md") %} {% set people = get_section(path="people/_index.md") %}
{% if people.pages is containing(page.taxonomies.people[0]) %} {% set pages_str = people.pages | json_encode() | as_str %}
{% if pages_str is containing(page.taxonomies.people[0]) %}
{% set author_path = 'people/' ~ page.taxonomies.people[0] ~ '/index.md' %} {% set author_path = 'people/' ~ page.taxonomies.people[0] ~ '/index.md' %}
{% set author = get_page(path=author_path) %} {% set author = get_page(path=author_path) %}
{% endif %} {% endif %}

View File

@@ -1,6 +1,10 @@
{% if featured.taxonomies.people %} {% if featured.taxonomies.people %}
{% set author_path = 'people/' ~ featured.taxonomies.people[0] ~ '/index.md' %} {% set people = get_section(path="people/_index.md") %}
{% set author = get_page(path=author_path) %} {% set pages_str = people.pages | json_encode() | as_str %}
{% if pages_str is containing(featured.taxonomies.people[0]) %}
{% set author_path = 'people/' ~ featured.taxonomies.people[0] ~ '/index.md' %}
{% set author = get_page(path=author_path) %}
{% endif %}
{% endif %} {% endif %}
<body> <body>