Add atribute on click in the image on Projects

This commit is contained in:
Osmandi 2020-09-06 14:05:00 -05:00
parent 8614d33c22
commit 9caf7456d5
1 changed files with 4 additions and 2 deletions

View File

@ -96,11 +96,13 @@
> >
{{ range $data.project.list }} {{ range $data.project.list }}
<div class="w-full rounded overflow-hidden shadow-lg"> <div class="w-full rounded overflow-hidden shadow-lg">
<img <a href="{{ .url }}" target="_blank">
<img
class="w-full h-48" class="w-full h-48"
src="{{ .image }}" src="{{ .image }}"
alt="Sunset in the mountains" alt="Sunset in the mountains"
/> />
</a>
<div class="px-6 py-4"> <div class="px-6 py-4">
<div class="font-bold text-xl mb-2">{{ .title }}</div> <div class="font-bold text-xl mb-2">{{ .title }}</div>
<p class="text-gray-700 text-base"> <p class="text-gray-700 text-base">