1 {{ define
"blog-list" }}
10 {{ partial
"pagination.html" . }}
14 <section id=
"two" class=
"spotlights">
15 <!-- Ranges through content/articles/*.md -->
16 {{ range .Paginator.Pages }}
18 <a class=
"image" href=
"{{.Permalink}}">
19 {{ if isset .Params
"featured_image" }}
20 <img src=
"{{ .Params.featured_image | absURL}}" alt=
"{{.Title}}">
22 {{ $default_image := resources.Get
"img/default_article.jpg" }}
23 <img src=
"{{ $default_image.Permalink }}" alt=
"{{.Title}}">
28 <header class=
"major">
30 {{ if gt (len .Title)
40 }}
31 {{ $first50 := ( substr .Title
0 40 ) }}
32 {{ $lastChars := ( substr .Title
40 ) }}
33 {{ $newLine :=
"<br>" }}
34 {{ $newTitle := ( printf
"%s" $lastChars | printf
"%s%s" $newLine | printf
"%s%s" $first50 ) }}
35 {{ $newTitle | safeHTML }}
41 <p>{{ .Params.excerpt }}
</p>
43 <li><a href=
"{{.Permalink}}" class=
"button">Read More
</a></li>
52 {{ partial
"pagination.html" . }}