feat: Change links to fulltext when available
This commit is contained in:
parent
50ea4e509c
commit
3f39e92ac5
1 changed files with 4 additions and 4 deletions
|
@ -30,14 +30,14 @@
|
|||
alt="Thumbnail of {{ .Title }}"
|
||||
/>
|
||||
{{ end }}
|
||||
<a href="{{ .RelPermalink }}"
|
||||
><h3 class="card-title">{{ .Title }}</h3></a
|
||||
>
|
||||
{{/* Prefer full-text links over local ones */}}
|
||||
{{ $link := default .RelPermalink (index .Params "link") }}
|
||||
<a href="{{ $link }}"><h3 class="card-title">{{ .Title }}</h3></a>
|
||||
<p class="card-text">
|
||||
{{ .Summary }}
|
||||
<strong
|
||||
><small
|
||||
><a href="{{ .RelPermalink }}">Read more »</a></small
|
||||
><a href="{{ $link }}">Read more »</a></small
|
||||
></strong
|
||||
>
|
||||
</p>
|
||||
|
|
Loading…
Reference in a new issue