Untitled

mail@pastecode.io avatar
unknown
plain_text
22 days ago
743 B
1
Indexable
Never
<#assign breadcrumb_object>
	<#if entries?has_content>
		{
			paths: [
			<#list entries as entry>
				<#if entry?has_next>
						{
							pageName: '${htmlUtil.escape(entry.getTitle())}',
							pageLink: '${entry.getURL()!"#"}'
						},
			    	<#else>
						{
							pageName: '${htmlUtil.escape(entry.getTitle())}',
							pageLink: '#',
							currentPage: true
						}
				</#if>
			</#list>
  		],
			<#assign penultimateIndex = entries?size - 2>
      <#if penultimateIndex gt -1>
          backLink: '${entries[penultimateIndex].getURL()!"#"}'<#if penultimateIndex gt 0>,
				  pageParent: '${htmlUtil.escape(entries[penultimateIndex].getTitle())}'
				</#if>
      <#else>
          backLink: '#'
      </#if>
		}
  </#if>
</#assign>
Leave a Comment