diff options
author | Osmandi <osmandigt@gmail.com> | 2020-09-06 22:05:00 +0300 |
---|---|---|
committer | Osmandi <osmandigt@gmail.com> | 2020-09-06 22:05:00 +0300 |
commit | 9caf7456d5ee63404973f8ac09a11764b7bf22c4 (patch) | |
tree | 4af7128678daf1701f089464c0830fe74afd72e7 | |
parent | 8614d33c225e29c697f19acc05f5c097d84bad62 (diff) |
Add atribute on click in the image on Projects
-rw-r--r-- | layouts/partials/home.html | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/layouts/partials/home.html b/layouts/partials/home.html index 834fd88..d6858c2 100644 --- a/layouts/partials/home.html +++ b/layouts/partials/home.html @@ -96,11 +96,13 @@ > {{ range $data.project.list }} <div class="w-full rounded overflow-hidden shadow-lg"> - <img + <a href="{{ .url }}" target="_blank"> + <img class="w-full h-48" src="{{ .image }}" alt="Sunset in the mountains" - /> + /> + </a> <div class="px-6 py-4"> <div class="font-bold text-xl mb-2">{{ .title }}</div> <p class="text-gray-700 text-base"> |