28 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
<li>
 | 
						|
    {{- $scratch := newScratch -}}
 | 
						|
    {{- if .seriesName -}}
 | 
						|
    {{- partial "nameinseries" (dict "page" .page "scratch" $scratch) -}}
 | 
						|
    {{- else -}}
 | 
						|
    {{- $scratch.Set "name" (.page.Title) -}}
 | 
						|
    {{- end -}}
 | 
						|
    <a href="{{ .page.Permalink }}" class="post-title">{{ if .page.Params.favorite }}{{ partial "icon.html" "star" }}{{ end }} {{ $scratch.Get "name" }}</a>
 | 
						|
    {{ if (not (eq .page.WordCount 0)) }}
 | 
						|
    <p class="post-wordcount">{{ i18n "nWords" .page.WordCount }}, {{ i18n "nMinutesToRead" .page.ReadingTime }}.</p>
 | 
						|
    {{ end }}
 | 
						|
    {{ if .page.Params.status }}
 | 
						|
    <p class="post-status">
 | 
						|
    {{ partial "seriesstatus.html" .page.Params.status }}
 | 
						|
    </p>
 | 
						|
    {{ end }}
 | 
						|
    <p class="post-preview">{{ .page.Summary }} {{ if .page.Truncated }}...{{ end }}</p>
 | 
						|
    {{- if .linkSeries -}}
 | 
						|
    {{- $term := index (.page.GetTerms "series") 0 -}}
 | 
						|
    {{- with $term -}}
 | 
						|
    <div class="series-link">
 | 
						|
    {{- partial "icon.html" "corner-down-right" -}}
 | 
						|
    <p>{{- i18n "latestInSeries" }} <a href="{{ $term.Permalink }}">{{ $term.Title }}</a></p>
 | 
						|
    </div>
 | 
						|
    {{- end -}}
 | 
						|
    {{- end }}
 | 
						|
</li>
 |