Create base layout file
This commit is contained in:
parent
4cdf7bc064
commit
a1405629af
32
src/_layouts/base.njk
Normal file
32
src/_layouts/base.njk
Normal file
|
|
@ -0,0 +1,32 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="{{ meta.lang }}">
|
||||||
|
<head>
|
||||||
|
<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 -->
|
||||||
|
<title>
|
||||||
|
{% if title %}
|
||||||
|
{{ title }}
|
||||||
|
{% else %}
|
||||||
|
{{ meta.siteName }}
|
||||||
|
{% endif %}
|
||||||
|
</title>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
{{ './src/assets/css/styles.scss' | sass }}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<!-- everything else: meta tags, icons, open graph etc. -->
|
||||||
|
{% include "partials/meta-info.njk" %}
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
{% include "partials/header.njk" %}
|
||||||
|
|
||||||
|
<main id="main">{{ content | safe }}</main>
|
||||||
|
|
||||||
|
{% include "partials/footer.njk" %}
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Loading…
Reference in a new issue