diff options
author | Yihui Xie <xie@yihui.name> | 2017-07-11 07:14:17 +0300 |
---|---|---|
committer | Yihui Xie <xie@yihui.name> | 2017-07-11 07:14:17 +0300 |
commit | 77e8f863b05be2c89f1e96babcbbe146dc302fc0 (patch) | |
tree | 46e2e6fe9de9ce2d506b18c73ca78fb6005e10b8 /layouts | |
parent | 9498f06219b2b65693fb0c4a19df329ed728f749 (diff) |
add the link to the whole summary and get rid of "read more", which is hard to position well
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/list.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index dfc58eb..510c588 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -18,6 +18,7 @@ {{ with .Params.author }}<span>{{ . }}</span>{{ end }} </div> <div class="summary"> + <a href="{{ .URL }}"> {{ with .Params.thumbnail }} <div class="thumbnail"><img src="{{ relURL . }}" alt="Thumbnail" /></div> {{ else }} @@ -27,7 +28,7 @@ {{ end }} {{ end }} {{ (default .Summary (.Description | markdownify)) | plainify | truncate (default 200 .Site.Params.summary_length) | replaceRE "&" "&" | safeHTML }} - <a href="{{ .URL }}" class="more">{{ (default "Read more →" .Site.Params.text.more) | safeHTML }}</a> + </a> </div> </section> {{ end }} |