newsroom refactor to support people taxonomy
This commit is contained in:
@@ -18,12 +18,14 @@
|
||||
<div class="flex items-center">
|
||||
<div class="flex justify-between items-center">
|
||||
<ul class="list-none flex author-list my-10 mr-2 px-0">
|
||||
{% for author in post.extra.authors %}
|
||||
{% set fullpath = "/people/" ~ author | replace(from='_', to='-' ) %}
|
||||
{% if post.extra.authorImg %}
|
||||
{% if featured.taxonomies.people %}
|
||||
{% for author in featured.taxonomies.people %}
|
||||
{% set author_path = 'people/' ~ author ~ '/index.md' %}
|
||||
{% set author = get_page(path=author_path) %}
|
||||
{% set author_img = get_url(path='/' ~ author.relative_path | replace(from='_', to='-') | replace(from='index.md', to=author.extra.imgPath)) %}
|
||||
<li class="author-list-item">
|
||||
<a href="{{fullpath}}" tooltip="{{author}}">
|
||||
<img src="{{ post.extra.authorImg }}" alt="{{ author }}" class="
|
||||
<a href="{{ author.permalink }}" tooltip="{{ author.title }}">
|
||||
<img src="{{ author_img }}" alt="{{ author.title }}" class="
|
||||
w-8
|
||||
h-8
|
||||
rounded-full
|
||||
@@ -32,8 +34,8 @@
|
||||
" />
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user