								
							{{ else }}

								{{ range $index, $element := split .RelPermalink "/" }}
						
									{{ $.Scratch.Add "path" $element }}
						
									{{ $.Scratch.Set "relURL" (replace ($.Scratch.Get "path") ( printf "%s/" $.Site.BaseURL) "" )}}
						
									{{ $.Scratch.Add "path" "/" }}
						
									<!-- Check if the current list item is the last one -->
									{{ $isLast := eq ($.Scratch.Get "path") $.RelPermalink }}
									{{ if ne $element "" }}
										{{ if not $isLast }}
						