Revert changes to article breadcrumbs

This commit is contained in:
Helen Chong 2024-04-19 23:53:10 +08:00
parent c9d530522a
commit baf61d74ae
1 changed files with 1 additions and 4 deletions

View File

@ -1,5 +1,5 @@
<header class="main__header"> <header class="main__header">
{% if eleventyNavigation %} {% if isArticle %}
<ul class="breadcrumbs"> <ul class="breadcrumbs">
{% set breadcrumbNavPages = collections.all | eleventyNavigationBreadcrumb(articleTitle) %} {% set breadcrumbNavPages = collections.all | eleventyNavigationBreadcrumb(articleTitle) %}
{%- for entry in breadcrumbNavPages %} {%- for entry in breadcrumbNavPages %}
@ -9,10 +9,7 @@
{%- endfor %} {%- endfor %}
</ul> </ul>
{% endif %}
{% if isArticle %}
<h1>{{ articleTitle }}</h1> <h1>{{ articleTitle }}</h1>
<div class="article__info"> <div class="article__info">
<p>Posted on {{ date | niceDate }} by {{ sitemeta.siteAuthor.name }} <p>Posted on {{ date | niceDate }} by {{ sitemeta.siteAuthor.name }}