partial builds
This commit is contained in:
parent
34a245c888
commit
1508d37266
7 changed files with 56 additions and 0 deletions
22
src/includes/layouts/base.njk
Normal file
22
src/includes/layouts/base.njk
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
|
||||
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
|
||||
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
|
||||
<!--[if gt IE 8]> <html class="no-js"> <!--<![endif]-->
|
||||
<html>
|
||||
<head>
|
||||
{% include "partials/meta.njk" %}
|
||||
</head>
|
||||
<body>
|
||||
<!--[if lt IE 7]>
|
||||
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="#">upgrade your browser</a> to improve your experience.</p>
|
||||
<![endif]-->
|
||||
<div id="main--container">
|
||||
{% include "partials/header.njk" %}
|
||||
<main>
|
||||
{{ content | safe }}
|
||||
</main>
|
||||
</div>
|
||||
{% include "partials/footer.njk" %}
|
||||
</body>
|
||||
</html>
|
||||
0
src/includes/layouts/post.njk
Normal file
0
src/includes/layouts/post.njk
Normal file
1
src/includes/partials/footer.njk
Normal file
1
src/includes/partials/footer.njk
Normal file
|
|
@ -0,0 +1 @@
|
|||
<footer>Footer</footer>
|
||||
1
src/includes/partials/header.njk
Normal file
1
src/includes/partials/header.njk
Normal file
|
|
@ -0,0 +1 @@
|
|||
<header>Header</header>
|
||||
25
src/includes/partials/meta.njk
Normal file
25
src/includes/partials/meta.njk
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
|
||||
<title>{{ title }} | {{ site.name }}</title>
|
||||
<link rel="canonical" href="{{site.url}}{{ permalink }}" />
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/images/icons/apple-touch-icon.png">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="/images/icons/favicon-32x32.png">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="/images/icons/favicon-16x16.png">
|
||||
<link rel="manifest" href="/images/icons/site.webmanifest">
|
||||
<link rel="mask-icon" href="/images/icons/safari-pinned-tab.svg" color="#7798ab">
|
||||
<meta name="msapplication-TileColor" content="#da532c">
|
||||
<meta name="theme-color" content="#f8f8f8">
|
||||
<meta property="og:site_name" content="{{ site.name }}" />
|
||||
<meta property="og:title" content="{{ site.name }} | {{ title }}" />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="{{ site.url }}" />
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
<meta property="og:image" content="{{site.url}}{{ site.socialImage }}" />
|
||||
<meta name="twitter:image" content="{{site.url}}{{ site.socialImage }}" />
|
||||
<meta property="og:image:alt" content="Page image for {{ site.name }}" />
|
||||
<meta name="twitter:image:alt" content="Page image for {{ site.name }}" />
|
||||
{% if metaDesc %}
|
||||
<meta name="description" content="{{ metaDesc }}" />
|
||||
<meta name="twitter:description" content="{{ metaDesc }}" />
|
||||
<meta property="og:description" content="{{ metaDesc }}" />
|
||||
{% endif %}
|
||||
7
src/includes/partials/nav.njk
Normal file
7
src/includes/partials/nav.njk
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<nav>
|
||||
<ul>
|
||||
{%- for item in nav.items -%}
|
||||
<li>{{ item.data.name }}</li>
|
||||
{%- endfor -%}
|
||||
</ul>
|
||||
</nav>
|
||||
0
src/includes/partials/post-item.njk
Normal file
0
src/includes/partials/post-item.njk
Normal file
Loading…
Reference in a new issue