mirror of
https://github.com/PR0M3TH3AN/Archivox.git
synced 2025-09-08 23:18:42 +00:00
Add base templates, theme, and dark mode
This commit is contained in:
21
templates/layout.njk
Normal file
21
templates/layout.njk
Normal file
@@ -0,0 +1,21 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" data-theme="{{ config.theme.darkMode ? 'dark' : 'light' }}">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>{{ title or config.site.title }}</title>
|
||||
<link rel="stylesheet" href="/assets/theme.css" />
|
||||
</head>
|
||||
<body>
|
||||
{% include "partials/header.njk" %}
|
||||
<div class="container">
|
||||
{% include "partials/sidebar.njk" %}
|
||||
<main id="content">
|
||||
<nav id="breadcrumbs" class="breadcrumbs"></nav>
|
||||
{{ content | safe }}
|
||||
</main>
|
||||
</div>
|
||||
{% include "partials/footer.njk" %}
|
||||
<script src="/assets/theme.js"></script>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user