refactor: add seperator in the bread crub

staging
Dinesh Salunke 2023-11-04 08:21:26 +05:30
parent 6684988922
commit e2d1a51653
1 changed files with 4 additions and 1 deletions

View File

@ -23,7 +23,7 @@
* International Registered Trademark & Property of PrestaShop SA * International Registered Trademark & Property of PrestaShop SA
*} *}
<nav data-depth="{$breadcrumb.count}" class="breadcrumb hidden md:flex my-8 w-full"> <nav data-depth="{$breadcrumb.count}" class="breadcrumb hidden md:flex my-8 w-full">
<ol itemscope itemtype="http://schema.org/BreadcrumbList" class="hidden md:flex w-full gap-4"> <ol itemscope itemtype="http://schema.org/BreadcrumbList" class="hidden md:flex w-full ">
{block name='breadcrumb'} {block name='breadcrumb'}
{foreach from=$breadcrumb.links item=path name=breadcrumb} {foreach from=$breadcrumb.links item=path name=breadcrumb}
{block name='breadcrumb_item'} {block name='breadcrumb_item'}
@ -31,6 +31,9 @@
<a itemprop="item" href="{$path.url}"> <a itemprop="item" href="{$path.url}">
<span itemprop="name">{$path.title}</span> <span itemprop="name">{$path.title}</span>
</a> </a>
<span class="mx-4">
/
</span>
<meta itemprop="position" content="{$smarty.foreach.breadcrumb.iteration}"> <meta itemprop="position" content="{$smarty.foreach.breadcrumb.iteration}">
</li> </li>
{/block} {/block}