1
Fork 0

Add titles to links in list

Makes it obvious what the link is doing
This commit is contained in:
Jake Howard 2021-12-27 10:42:16 +00:00
parent 92ea26dd20
commit a22dfd85e9
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -1,7 +1,7 @@
<div class="media list-page-item mb-3" data-id="{{ .File.UniqueID }}">
{{ if .Params.image }}
<div class="d-none d-md-block align-self-center img-wrapper mr-3">
<a href="{{ .RelPermalink }}">
<a href="{{ .RelPermalink }}" title="{{ .Title }}">
{{ .Scratch.Set "image" .Params.image }}
{{ if hasPrefix .Params.image "resource:" }}
{{ $resource := .Resources.GetMatch (replace .Params.image "resource:" "") }}
@ -17,7 +17,7 @@
</div>
{{ end }}
<div class="media-body">
<a href="{{ .RelPermalink }}">
<a href="{{ .RelPermalink }}" title="{{ .Title }}">
<h5 class="my-0">{{ .Title }}</h5>
</a>
<small>{{ partial "content-details.html" . }}</small>