Skip to content

Commit 8775022

Browse files
authored
fix empty excerpts (#14)
1 parent f013131 commit 8775022

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

layouts/_default/li.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<article class="post {{ .Section }}">
2+
<header class="post-header">
3+
<h2 class="post-title"><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
4+
</header>
5+
<section class="post-excerpt">
6+
<p>{{ .Summary | markdownify | plainify | htmlUnescape | default "Read More"}} <a class="read-more" href="{{.RelPermalink}}">&raquo;</a></p>
7+
</section>
8+
<footer class=" footline" >
9+
{{- with .Params.LastModifierDisplayName -}}
10+
<i class='fa fa-user'></i> <a href="mailto:{{ $.Params.LastModifierEmail }}">{{ . }}</a> {{with $.Date}} <i class='fa fa-calendar'></i> {{ .Format "02/01/2006" }}{{end}}
11+
{{- end -}}
12+
{{- if .Params.tags -}}
13+
{{ range $index, $tag := .Params.tags }}
14+
<a class="label label-default" href="{{$.Site.BaseURL}}tags/{{ $tag | urlize }}/">{{ $tag }}</a>
15+
{{ end }}
16+
{{- end -}}
17+
</footer>
18+
</article>

static/css/custom.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ body > header {
2020
padding-right: 10%;
2121
}
2222

23+
body > header a {
24+
color: rgba(255,255,255,0.8);
25+
}
26+
2327
body > header:after {
2428
display: none;
2529
}

0 commit comments

Comments
 (0)