Skip to content

Commit 05deadf

Browse files
alphapapastefanv
andauthored
Add: "More" links after post summaries (#391)
* Add: "More" links after post summaries Closes #392. * Align with PDST --------- Co-authored-by: Stefan van der Walt <stefanv@berkeley.edu>
1 parent cd3e731 commit 05deadf

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

assets/theme-css/posts.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ div.MathJax_Display {
8585
margin: 0.5em;
8686
}
8787

88+
.read-more {
89+
font-style: italic;
90+
}
91+
8892
.tag-cloud {
8993
position: sticky;
9094
align-self: flex-start;

layouts/partials/posts/summary.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@
33
{{ with $featuredImage }}
44
<img src="{{ .RelPermalink }}" {{ if .Params.description }}alt="{{ .Params.description }}"{{ end }}/>
55
{{ end }}
6-
{{ .Summary }}
6+
{{ strings.Chomp .Summary }}
7+
<span class="read-more">
8+
<a href="{{ .RelPermalink }}">Read more...</a>
9+
</span>
710
</div>

0 commit comments

Comments
 (0)