denovoref
Add binary files from src/search_engine/index
efeacc7
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Search Results</title>
<!-- Include Bootstrap CSS -->
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="container mt-5">
<h1>Search Results for "{{ query }}"</h1>
{% if results %}
<div class="row">
<!-- Loop through the search results and create a card for each -->
{% for result in results %}
<div class="col-md-4">
<div class="card mb-4">
<div class="card-body">
<h5 class="card-title">{{ result['title'] }}</h5>
<p class="card-text">
<!-- Display the date if it exists -->
{% if result['date'] %}
<strong>Date:</strong> {{ result['date'] }}<br>
{% endif %}
<strong>Path:</strong> <a href="{{ result['path'] }}" target="_blank">{{ result['path'] }}</a>
</p>
</div>
</div>
</div>
{% endfor %}
</div>
{% else %}
<p>No results found.</p>
{% endif %}
<a href="/" class="btn btn-primary">Back to Search</a>
</div>
<!-- Include Bootstrap JS and dependencies (optional) -->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
</body>
</html>