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 }}"
|
alt="Thumbnail of {{ .Title }}"
|
||||||
/>
|
/>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<a href="{{ .RelPermalink }}"
|
{{/* Prefer full-text links over local ones */}}
|
||||||
><h3 class="card-title">{{ .Title }}</h3></a
|
{{ $link := default .RelPermalink (index .Params "link") }}
|
||||||
>
|
<a href="{{ $link }}"><h3 class="card-title">{{ .Title }}</h3></a>
|
||||||
<p class="card-text">
|
<p class="card-text">
|
||||||
{{ .Summary }}
|
{{ .Summary }}
|
||||||
<strong
|
<strong
|
||||||
><small
|
><small
|
||||||
><a href="{{ .RelPermalink }}">Read more »</a></small
|
><a href="{{ $link }}">Read more »</a></small
|
||||||
></strong
|
></strong
|
||||||
>
|
>
|
||||||
</p>
|
</p>
|
||||||
|
|
Loading…
Reference in a new issue