path-nav.phtml 1.06 KB
{{#if pathNav}}
    <p class="path-nav">
        {{#each pathNav}}
            {{#if href}}
                <a href="{{href}}">
                    {{#if @last}}
                        <b {{#if title}}title="{{title}}"{{/if}}>{{name}}</b>
                    {{else}}
                        <span {{#if title}}title="{{title}}"{{/if}}>{{name}}</span>
                    {{/if}}

                    {{#unless @last}}
                        <span class="iconfont">&#xe601;</span>
                    {{/unless}}
                </a>
            {{^}}
                    {{#if @last}}
                        <b {{#if title}}title="{{title}}"{{/if}}>{{{name}}}</b>
                    {{else}}
                        <span {{#if title}}title="{{title}}"{{/if}}>{{name}}</span>
                    {{/if}}

                    {{#unless @last}}
                     <span>
                        <i class="iconfont">&#xe601;</i>
                     </span>
                    {{/unless}}

            {{/if}}
        {{/each}}
    </p>
{{/if}}