1 {{ define
"category-list" }}
5 <h2>Category: {{ .Title }}
</h2>
7 <p>Here you'll find all my articles related to {{ .Title }}. Enjoy.
</p>
10 <section id=
"two" class=
"spotlights">
11 <!-- Ranges through content/articles/*.md -->
12 {{ range .Paginator.Pages }}
14 <a class=
"image" href=
"{{.Permalink}}">
15 {{ if isset .Params
"featured_image" }}
16 <img src=
"{{ .Params.featured_image | absURL}}" data-position=
"center center" alt=
"{{.Title}}">
18 {{ $default_image := resources.Get
"img/default_article.jpg" }}
19 <img src=
"{{ $default_image.Permalink }}" data-position=
"center center" alt=
"{{.Title}}">
24 <header class=
"major">
26 {{ if gt (len .Title)
40 }}
27 {{ $first50 := ( substr .Title
0 40 ) }}
28 {{ $lastChars := ( substr .Title
40 ) }}
29 {{ $newLine :=
"<br>" }}
30 {{ $newTitle := ( printf
"%s" $lastChars | printf
"%s%s" $newLine | printf
"%s%s" $first50 ) }}
31 {{ $newTitle | safeHTML }}
37 <p>{{ .Params.excerpt }}
</p>
39 <li><a href=
"{{.Permalink}}" class=
"button">Read More
</a></li>
48 {{ partial
"pagination.html" . }}