Skip to content

Commit

Permalink
Extend base layout instead of layout partials
Browse files Browse the repository at this point in the history
  • Loading branch information
aduth committed Mar 19, 2024
1 parent 77f02e3 commit e7a5fba
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 21 deletions.
3 changes: 0 additions & 3 deletions docs/_includes/layout/footer.html

This file was deleted.

10 changes: 0 additions & 10 deletions docs/_includes/layout/header.html

This file was deleted.

19 changes: 14 additions & 5 deletions docs/_layouts/base.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
{% include layout/header.html %}

{{ content }}

{% include layout/footer.html %}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ page.title }}</title>
<link rel="stylesheet" href="{{ site.baseurl }}/assets/css/styles.css">
<script src="{{ site.baseurl }}/assets/js/init.js"></script>
</head>
<body>
{{ content }}
<script src="{{ site.baseurl }}/assets/js/main.js"></script>
</body>
</html>
6 changes: 3 additions & 3 deletions docs/_layouts/component.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{% include layout/header.html %}
---
layout: base
---

<main class="padding-y-4">
<div class="grid-container">
Expand Down Expand Up @@ -28,5 +30,3 @@ <h1>{{ page.title }}</h1>
</div>
</div>
</main>

{% include layout/footer.html %}

0 comments on commit e7a5fba

Please sign in to comment.