Skip to content

Commit

Permalink
mejora de busqueda
Browse files Browse the repository at this point in the history
  • Loading branch information
uo276976 committed Nov 15, 2024
1 parent 9a5e5c4 commit 881a5a3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pages/resultadosDeBusqueda.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ <h1 id="searchResultsTitle">Resultados de Búsqueda</h1>

// Display matches
if (matches.length > 0) {
$('#searchResultsContainer').append(`<h2>- Resultados en ${page}</h2>`);
// Replace '../' with 'Inicio' when displaying results
const pageTitle = (page === '../') ? 'Inicio' : page;
$('#searchResultsContainer').append(`<h2>- Resultados en ${pageTitle}</h2>`);
matches.forEach(match => {
$('#searchResultsContainer').append(`
<p><a href="${match.url}">${match.snippet}</a></p>
Expand Down

0 comments on commit 881a5a3

Please sign in to comment.