Skip to content

Commit

Permalink
Add: "More" links after post summaries (#391)
Browse files Browse the repository at this point in the history
* Add: "More" links after post summaries

Closes #392.

* Align with PDST

---------

Co-authored-by: Stefan van der Walt <stefanv@berkeley.edu>
  • Loading branch information
alphapapa and stefanv authored Nov 7, 2023
1 parent cd3e731 commit 05deadf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions assets/theme-css/posts.css
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ div.MathJax_Display {
margin: 0.5em;
}

.read-more {
font-style: italic;
}

.tag-cloud {
position: sticky;
align-self: flex-start;
Expand Down
5 changes: 4 additions & 1 deletion layouts/partials/posts/summary.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@
{{ with $featuredImage }}
<img src="{{ .RelPermalink }}" {{ if .Params.description }}alt="{{ .Params.description }}"{{ end }}/>
{{ end }}
{{ .Summary }}
{{ strings.Chomp .Summary }}
<span class="read-more">
<a href="{{ .RelPermalink }}">Read more...</a>
</span>
</div>

0 comments on commit 05deadf

Please sign in to comment.