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:
George Cushen committed 2020-06-17 18:47:01 +01:00
1 parent ed29a71afa
commit 033e1bd32c
3 files changed
+15 -4

No files matched your search

+7
View File
@@ -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;
+3 -1
View File
@@ -55,7 +55,9 @@
{{ with $summary }}
<div class="article-style">
<p>{{.}}</p>
<a href="{{ $item.RelPermalink }}">
<p>{{.}}</p>
</a>
</div>
{{ end }}
+5 -3
View File
@@ -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">