SHA256
55 lines
1.7 KiB
HTML
55 lines
1.7 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}Home - markMyWords{% endblock %}
|
|
|
|
{% block extra_head %}
|
|
<script src="{{ url_for('static', filename='search.js') }}"></script>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="container">
|
|
<section class="search-section">
|
|
<h1>Article Search</h1>
|
|
<div class="search-box">
|
|
<input
|
|
type="text"
|
|
id="searchInput"
|
|
class="search-input"
|
|
placeholder="Search across all repositories..."
|
|
autocomplete="off"
|
|
>
|
|
<button class="search-button" onclick="performSearch()">Search</button>
|
|
</div>
|
|
|
|
<div id="searchResults" class="search-results" style="display: none;">
|
|
<h2>Search Results</h2>
|
|
<div id="resultsList"></div>
|
|
</div>
|
|
</section>
|
|
|
|
<section class="repositories-section">
|
|
<h2>Site Navigation</h2>
|
|
{% if repositories %}
|
|
<div class="repo-grid">
|
|
{% for repo in repositories %}
|
|
<div class="repo-card">
|
|
<h3>{{ repo.name }}</h3>
|
|
{% if repo.tree %}
|
|
<div class="file-tree">
|
|
{% include 'tree_render.html' %}
|
|
</div>
|
|
{% else %}
|
|
<p class="no-files">No markdown files found</p>
|
|
{% endif %}
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
{% else %}
|
|
<div class="empty-state">
|
|
<p>No repositories configured. Please check your configuration file.</p>
|
|
</div>
|
|
{% endif %}
|
|
</section>
|
|
</div>
|
|
{% endblock %}
|