1 {{ define
"blog-list" }}
10 {{ partial
"pagination.html" . }}
14 <section id=
"two" class=
"spotlights">
15 <!-- Ranges through content/posts/*.md -->
16 {{ range .Paginator.Pages }}
18 <a class=
"image" href=
"{{.Permalink}}">
19 <img src=
"{{ .Params.featured_image | absURL}}" alt=
".Title">
23 <header class=
"major">
25 {{ if gt (len .Title)
40 }}
26 {{ $first50 := ( substr .Title
0 40 ) }}
27 {{ $lastChars := ( substr .Title
40 ) }}
28 {{ $newLine :=
"<br>" }}
29 {{ $newTitle := ( printf
"%s" $lastChars | printf
"%s%s" $newLine | printf
"%s%s" $first50 ) }}
30 {{ $newTitle | safeHTML }}
36 <p>{{ .Params.excerpt }}
</p>
38 <li><a href=
"{{.Permalink}}" class=
"button">Read More
</a></li>
47 {{ partial
"pagination.html" . }}