mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-13 06:14:48 +00:00
feat: link page summary to page
Provides an experience similar to popular blogging platforms. Make it easier for the visitor to click through and more obvious that it's just a excerpt of the page. Close #1751
This commit is contained in:
1 parent
ed29a71afa
commit
033e1bd32c
3 files changed
+15
-4
No files matched your search
@@ -25,6 +25,13 @@
|
||||
border: 1px solid rgb(68, 71, 90);
|
||||
}
|
||||
|
||||
/* 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 {
|
||||
color: unset;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.card {
|
||||
margin-bottom: 1.5rem;
|
||||
overflow: hidden;
|
||||
|
||||
@@ -55,7 +55,9 @@
|
||||
|
||||
{{ with $summary }}
|
||||
<div class="article-style">
|
||||
<p>{{.}}</p>
|
||||
<a href="{{ $item.RelPermalink }}">
|
||||
<p>{{.}}</p>
|
||||
</a>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
|
||||
@@ -38,9 +38,11 @@
|
||||
</h3>
|
||||
|
||||
{{ with $summary }}
|
||||
<div class="article-style">
|
||||
{{ . }}
|
||||
</div>
|
||||
<div class="article-style">
|
||||
<a href="{{ $item.RelPermalink }}">
|
||||
{{ . }}
|
||||
</a>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
<div class="stream-meta article-metadata">
|
||||
|
||||
Reference in new issue
Block a user