Browse Source

Images in search results for /beta

master
Clark Wimberly 2 years ago
parent
commit
5698d0dfa1
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      _layouts/beta.html
  2. +1
    -1
      search.html

+ 1
- 1
_layouts/beta.html View File

@ -293,7 +293,7 @@ SimpleJekyllSearch({
searchInput: document.getElementById('search-input'),
resultsContainer: document.getElementById('results-container'),
json: '/search.json',
searchResultTemplate: '<div class="recipe sm-col sm-col-6 md-col-4 py1"><a class="block relative bg-blue mx1" href="{url}"><div class="image ratio bg-cover" {% for image in post.image %} style="background-image:url({{site.baseurl}}/images/{image});"{% endfor %}></div><h1 class="title p2 m0 absolute bold white bottom-0 left-0">{title}</h1></a></div>'
searchResultTemplate: '<div class="recipe sm-col sm-col-6 md-col-4 py1"><a class="block relative bg-blue mx1" href="{url}"><div class="image ratio bg-cover" style="background-image:url({image});"></div><h1 class="title p2 m0 absolute bold white bottom-0 left-0">{title}yo</h1></a></div>'
})
</script>


+ 1
- 1
search.html View File

@ -28,7 +28,7 @@ SimpleJekyllSearch({
searchInput: document.getElementById('search-input'),
resultsContainer: document.getElementById('results-container'),
json: '{{site.baseurl}}/search.json',
searchResultTemplate: '<div class="sm-col sm-col-6 md-col-6 lg-col-4 xs-px1 xs-mb2 left-align"><a class="block relative bg-blue" href="{url}"><div class="image ratio bg-cover" style="background-image:url({{site.baseurl}}/images/{image});"></div><h1 class="title p2 m0 absolute bold white bottom-0 left-0">{title}</h1></a></div>'
searchResultTemplate: '<div class="sm-col sm-col-6 md-col-6 lg-col-4 xs-px1 xs-mb2 left-align"><a class="block relative bg-blue" href="{url}"><div class="image ratio bg-cover" style="background-image:url({image});"></div><h1 class="title p2 m0 absolute bold white bottom-0 left-0">{title}</h1></a></div>'
})
</script>


Loading…
Cancel
Save