projects
/
ryf-theme.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa0f7f3
)
linkify images in search results
author
Andrew Engelbrecht
<andrew@fsf.org>
Fri, 2 Aug 2019 19:01:54 +0000
(15:01 -0400)
committer
Andrew Engelbrecht
<andrew@fsf.org>
Fri, 2 Aug 2019 19:01:54 +0000
(15:01 -0400)
templates/search-result.html.twig
patch
|
blob
|
blame
|
history
diff --git
a/templates/search-result.html.twig
b/templates/search-result.html.twig
index 31ae4712f8ed892e8fba4947486481391a1d0394..69e99ead28c7533851d9ac7a5170df110b1d5d95 100644
(file)
--- a/
templates/search-result.html.twig
+++ b/
templates/search-result.html.twig
@@
-65,7
+65,9
@@
{{ title_suffix }}
{% if node.field_image.0 %}
<div class="search-image">
- <img src="{{ node.field_image.0.entity.uri.value | image_style('thumbnail') }}">
+ <a href="{{ url }}">
+ <img src="{{ node.field_image.0.entity.uri.value | image_style('thumbnail') }}">
+ </a>
</div>
{% endif %}
{% if snippet %}