feat: Change links to fulltext when available

pull/10/head
parent 50ea4e509c
commit 3f39e92ac5
Signed by: millironx
GPG Key ID: 09335146883990B9

@ -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 &raquo;</a></small ><a href="{{ $link }}">Read more &raquo;</a></small
></strong ></strong
> >
</p> </p>

Loading…
Cancel
Save