Skip to content

Commit

Permalink
Add: "More" links after post summaries
Browse files Browse the repository at this point in the history
Closes #392.
  • Loading branch information
alphapapa committed Nov 6, 2023
1 parent cd0b62a commit b87a45e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions assets/theme-css/posts.css
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@ div.MathJax_Display {
margin: 0.5em;
}

.read-more {
margin-top: 0.5em;
font-variant-caps: small-caps;
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 }}
<div class="read-more">
<a href="{{ .RelPermalink }}">more ⟶</a>
</div>
</div>

0 comments on commit b87a45e

Please sign in to comment.