docs refactor
All checks were successful
All checks were successful
This commit is contained in:
65
docs/templates/base.html
vendored
65
docs/templates/base.html
vendored
@ -1,43 +1,44 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{{ title }}</title>
|
||||
{% if metadata and metadata.title %}
|
||||
<title>{{ metadata.title }} — Foldsite</title>
|
||||
<meta name="description" content="{{ metadata.description or 'A thoughtful static site generator' }}">
|
||||
{% if metadata.tags %}
|
||||
<meta name="keywords" content="{{ metadata.tags | join(', ') }}">
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<title>Foldsite — Documentation</title>
|
||||
<meta name="description" content="A thoughtful static site generator built with Python">
|
||||
{% endif %}
|
||||
|
||||
<!-- Open Graph / Social Media -->
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:title" content="{{ metadata.title if metadata and metadata.title else 'Foldsite' }}">
|
||||
<meta property="og:description" content="{{ metadata.description if metadata and metadata.description else 'A thoughtful static site generator' }}">
|
||||
|
||||
<!-- Load layout-specific styles -->
|
||||
{% for style in styles %}
|
||||
<link rel="stylesheet" href="/styles{{ style }}">
|
||||
{% endfor %}
|
||||
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Outfit:wght@100..900&display=swap" rel="stylesheet">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Doto:wght@100..900&family=Lekton:ital,wght@0,400;0,700;1,400&display=swap" rel="stylesheet">
|
||||
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='base.css') }}">
|
||||
{% for style in styles %}
|
||||
<link rel="stylesheet" href="/styles{{ style }}" type="text/css">
|
||||
{% endfor %}
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/styles/default.min.css">
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/highlight.min.js"></script>
|
||||
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/languages/django.min.js"></script>
|
||||
|
||||
|
||||
{% block extra_styles %}{% endblock %}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="holder">
|
||||
<div class="sidebar"> <!-- Changed <sidebar> to <div> -->
|
||||
<ul>
|
||||
<li><a href="/">⌂ Home</a></li>
|
||||
<hr>
|
||||
{% for f in get_folder_contents() %}
|
||||
{% if not f.is_dir %}
|
||||
{% if f.proper_name == "index" %}
|
||||
{% else %}
|
||||
<li><a href="/{{ f.path }}">{{ f.proper_name }}</a></li>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
<div class="content"> <!-- <main> tag remains the same -->
|
||||
{{ content|safe }}
|
||||
<div class="footer">
|
||||
<p>© DWS</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
{{ content|safe }}
|
||||
|
||||
</html>
|
||||
<script>hljs.highlightAll();</script>
|
||||
</body>
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user