feat: simplify layout structure
This commit is contained in:
parent
c2f112a41b
commit
7c38b2fa4b
36 changed files with 47 additions and 72 deletions
|
@ -1,33 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- charset/http-equiv/viewport -->
|
||||
<meta charset="UTF-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>
|
||||
{% if title %}{{ title }} •{% endif %}
|
||||
{{ meta.siteName }}
|
||||
</title>
|
||||
<link rel="stylesheet" href="/css/styles.css" />
|
||||
{% include "partials/meta.html" %}
|
||||
{% for preload in preloads %}
|
||||
<link rel="preload"
|
||||
as="{{ preload.as }}"
|
||||
href="{{ preload.href }}"
|
||||
{% if preload.crossorigin %}crossorigin{% endif %} />
|
||||
{% endfor %}
|
||||
{% if youtube %}
|
||||
<!-- youtube, if true in frontmatter -->
|
||||
<script type="module"
|
||||
src="https://cdn.jsdelivr.net/npm/@justinribeiro/lite-youtube@1.4.0/lite-youtube.min.js"></script>
|
||||
{% endif %}
|
||||
</head>
|
||||
<body class="[ flex-col ]">
|
||||
{% include "partials/header.html" %}
|
||||
<main id="main" class="[ flow flex-1 wrapper ]">
|
||||
{{ content | safe }}
|
||||
</main>
|
||||
{% include "partials/footer.html" %}
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue