mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-12 18:15:31 +00:00
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:
1 parent
033e1bd32c
commit
4efb4d3ab0
3 files changed
+8
-9
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in new issue
Block a user