Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/yihui/hugo-xmag.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYihui Xie <xie@yihui.name>2017-07-11 07:14:17 +0300
committerYihui Xie <xie@yihui.name>2017-07-11 07:14:17 +0300
commit77e8f863b05be2c89f1e96babcbbe146dc302fc0 (patch)
tree46e2e6fe9de9ce2d506b18c73ca78fb6005e10b8 /layouts
parent9498f06219b2b65693fb0c4a19df329ed728f749 (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.html3
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 "&amp;" "&" | safeHTML }}
- <a href="{{ .URL }}" class="more">{{ (default "Read more &rarr;" .Site.Params.text.more) | safeHTML }}</a>
+ </a>
</div>
</section>
{{ end }}