File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
rca/project_styleguide/templates/patterns/molecules/search-result Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 1
1
{% load static wagtailcore_tags wagtailsearchpromotions_tags wagtailimages_tags %}
2
2
3
3
< div class ="search-result ">
4
+ {% if pick.external_link_url %}
5
+ < a class ="search-result__link grid " href ="{{ pick.external_link_url }} ">
6
+ {% else %}
4
7
< a class ="search-result__link grid " href ="{% pageurl result %} ">
8
+ {% endif %}
5
9
< div class ="search-result__header layout__@large-start-two layout__@large-span-one ">
6
- < h3 class ="search-result__heading heading heading--five "> {% firstof result.listing_title result.title %}</ h3 >
10
+ < h3 class ="search-result__heading heading heading--five "> {% firstof pick.external_link_text result.listing_title result.title %}</ h3 >
7
11
{% if search_pick %}< div class ="search-result__editor-pick body body--support "> Recommended result</ div > {% endif %}
8
12
</ div >
9
13
{% with meta=result.specific.listing_meta %}
You can’t perform that action at this time.
0 commit comments