1 {{ define
"blog-list" }}
9 <section id=
"two" class=
"spotlights">
10 <!-- Ranges through content/posts/*.md -->
13 <a class=
"image" href=
"{{.Permalink}}">
14 <img src=
"{{ "bg/bg2.jpg
" | absURL}}" alt=
"suca">
18 <header class=
"major">
20 {{ if gt (len .Title)
40 }}
21 {{ $first50 := ( substr .Title
0 40 ) }}
22 {{ $lastChars := ( substr .Title
40 ) }}
23 {{ $newLine :=
"<br>" }}
24 {{ $newTitle := ( printf
"%s" $lastChars | printf
"%s%s" $newLine | printf
"%s%s" $first50 ) }}
25 {{ $newTitle | safeHTML }}
31 <p>here goes an abstract
</p>
33 <li><a href=
"{{.Permalink}}" class=
"button">Read More
</a></li>