Skip to content
Permalink
Browse files

create summaries of blogs with blogdown.

  • Loading branch information
Peng Zhao
Peng Zhao committed Mar 5, 2019
1 parent a12898e commit 863cfb399c99779caf7f2bc6d485b54531d79eaa
Showing with 16 additions and 1 deletion.
  1. +16 −1 themes/hugo-universal-theme/layouts/_default/list.html
@@ -55,7 +55,22 @@ <h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
<a href="{{ .Permalink }}"><i class="fa fa-calendar-o"></i> {{ .Date.Format .Site.Params.date_format }}</a>
</p>
</div>
<p class="intro">{{ .Summary }}</p>
{{ if .Params.summary }}
{{ .Params.summary | emojify }}
{{ else if .Params.abstract }}
{{ .Params.abstract | plainify | emojify | truncate 250 }}
{{ else if .Summary }}
{{ .Summary | emojify }}
{{ end }}

<!-- <p> {{ if .Description }}
{{ .Description }}
{{ else }}
{{ .Summary | plainify | safeHTML }}
{{ end }}</p>
<p class="intro">{{ .Summary }}</p> -->

<p class="read-more"><a href="{{ .Permalink }}" class="btn btn-template-main">{{ i18n "continueReading" }}</a>
</p>
</div>

0 comments on commit 863cfb3

Please sign in to comment.
You can’t perform that action at this time.