Skip to content

Commit

Permalink
create summaries of blogs with blogdown.
Browse files Browse the repository at this point in the history
  • Loading branch information
pzhaonet committed Mar 5, 2019
1 parent a12898e commit 863cfb3
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion themes/hugo-universal-theme/layouts/_default/list.html
Expand Up @@ -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> <a href="{{ .Permalink }}"><i class="fa fa-calendar-o"></i> {{ .Date.Format .Site.Params.date_format }}</a>
</p> </p>
</div> </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 class="read-more"><a href="{{ .Permalink }}" class="btn btn-template-main">{{ i18n "continueReading" }}</a>
</p> </p>
</div> </div>
Expand Down

0 comments on commit 863cfb3

Please sign in to comment.