refactor: link page summary block rather than text

Enables the visitor to easily click anywhere on the summary (even between lines) rather than having to click exactly on the text.

Close #1751
This commit is contained in:
George Cushen committed 2020-06-17 19:14:02 +01:00
1 parent 033e1bd32c
commit 4efb4d3ab0
3 files changed
+8 -9

No files matched your search

+1 -2
View File
@@ -26,8 +26,7 @@
}
/* In page listings, display the linked summaries as normal text except for the hover cursor. */
.media.stream-item .article-style a,
.card-simple .article-style a {
a.summary-link {
color: unset;
text-decoration: none;
}
+4 -4
View File
@@ -54,11 +54,11 @@
</h3>
{{ with $summary }}
<div class="article-style">
<a href="{{ $item.RelPermalink }}">
<a href="{{ $item.RelPermalink }}" class="summary-link">
<div class="article-style">
<p>{{.}}</p>
</a>
</div>
</div>
</a>
{{ end }}
{{ if $show_buttons }}
+3 -3
View File
@@ -38,11 +38,11 @@
</h3>
{{ with $summary }}
<a href="{{ $item.RelPermalink }}" class="summary-link">
<div class="article-style">
<a href="{{ $item.RelPermalink }}">
{{ . }}
</a>
{{.}}
</div>
</a>
{{ end }}
<div class="stream-meta article-metadata">