30 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			HTML
		
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			HTML
		
	
	
{{- $linkTarget := .linkTarget -}}
 | 
						|
{{- $ := index . "$" -}}
 | 
						|
{{- $pages := $.Pages -}}
 | 
						|
{{- $limit := -1 -}}
 | 
						|
{{- with $linkTarget -}}
 | 
						|
    {{- if isset (index $pages 0).Site.Params "limitentrieslimit" -}}
 | 
						|
        {{- $limit = (index $pages 0).Site.Params.limitEntriesLimit -}}
 | 
						|
    {{- end -}}
 | 
						|
{{- end -}}
 | 
						|
{{- if ge $limit 0 -}}
 | 
						|
    {{- $pages = $pages | first $limit -}}
 | 
						|
{{- end -}}
 | 
						|
{{- with $pages -}}
 | 
						|
    <ul class="list-part">
 | 
						|
        {{ range . }}
 | 
						|
            <li class="list-item">
 | 
						|
                <a href="{{ .RelPermalink }}" class="list-item-title">{{ (partial "utils/title.html" (dict "$" . "title" .LinkTitle)).htmlTitle }}</a>
 | 
						|
                <time datetime="{{ .PublishDate.Format "2006-01-02T15:04:05-07:00" }}" class="list-item-time">{{ .PublishDate.Format .Site.Params.listDateFormat }}</time>
 | 
						|
            </li>
 | 
						|
        {{ end }}
 | 
						|
        {{ if and (gt $limit 0) (gt (len $.Pages) $limit) }}
 | 
						|
            {{ with $linkTarget }}
 | 
						|
                <li class="list-read-more">
 | 
						|
                    <a href="{{ $linkTarget.RelPermalink }}">{{ i18n "readMore" }} »</a>
 | 
						|
                </li>
 | 
						|
            {{ end }}
 | 
						|
        {{ end }}
 | 
						|
    </ul>
 | 
						|
{{ end }}
 |