add a logo.webp and implement in index
This commit is contained in:
@ -1,53 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
<meta property="og:image" content="/_assets/img/cropped.png"/>
|
||||
<link rel="icon" type="image/x-icon" href="/_assets/img/fav.png">
|
||||
{# <link rel="stylesheet" href="/_assets/css/normalize.css" /> #}
|
||||
{# <link rel="stylesheet" href="/_assets/css/styles.css"/> #}
|
||||
|
||||
{% set normalise %}
|
||||
{% include "normalize.css" %}
|
||||
{% endset %}
|
||||
<style>
|
||||
{{normalise | cssmin | safe}}
|
||||
</style>
|
||||
{% set css %}
|
||||
{% include "styles.css" %}
|
||||
{% endset %}
|
||||
<style>
|
||||
{{css | cssmin | safe}}
|
||||
</style>
|
||||
{% if title %}
|
||||
<title>{{ site.title }} - {{ title }}</title>
|
||||
{% else %}
|
||||
<title>{{ site.title }}</title>
|
||||
{% endif %}
|
||||
{% if description %}
|
||||
<meta name="description" content="{{ description }}">
|
||||
{% else %}
|
||||
<meta name="description" content="{{ site.description }}">
|
||||
{% endif %}
|
||||
</head>
|
||||
<body>
|
||||
<main>
|
||||
<div>
|
||||
{# <header>{% include 'partials/header.njk' %}</header> #}
|
||||
{# <hr/> #}
|
||||
<article>
|
||||
<h2>{{ title }}</h2>
|
||||
{{ content | safe }}
|
||||
</article>
|
||||
</div>
|
||||
<footer>
|
||||
<hr/>
|
||||
{% include 'partials/footer.njk' %}
|
||||
</footer>
|
||||
</main>
|
||||
<aside>{% include 'partials/sidebar.njk' %}</aside>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
---
|
||||
layout: layout/core.njk
|
||||
---
|
||||
<h2>{{ title }}</h2>
|
||||
{{ content | safe}}
|
@ -1,11 +1,16 @@
|
||||
---
|
||||
layout: layout/base.njk
|
||||
layout: layout/core.njk
|
||||
---
|
||||
{% set previousPost = collections.post | getPreviousCollectionItem(page) %}
|
||||
{% set nextPost = collections.post | getNextCollectionItem(page) %}
|
||||
<sup>{{ page.date.toLocaleDateString("en-UK") }}</sup>
|
||||
<div class="nav-buttons nav-buttons-top">
|
||||
{% if nextPost %}<a href="{{ nextPost.url }}"><== next</a>{% else %}x=={% endif %}
|
||||
{% if previousPost %}<a href="{{ previousPost.url }}">prev ==></a>{% else %}==x{% endif %}
|
||||
</div>
|
||||
<h2>{{ title }}</h2>
|
||||
<span class="date-tag">{{ page.date.toLocaleDateString("en-UK") }}</span>
|
||||
<article class="blog-post">{{ content | safe}}</article>
|
||||
<div class="nav-buttons">
|
||||
<div class="nav-buttons nav-buttons-bottom">
|
||||
{% if nextPost %}<a href="{{ nextPost.url }}"><== next</a>{% else %}x=={% endif %}
|
||||
{% if previousPost %}<a href="{{ previousPost.url }}">prev ==></a>{% else %}==x{% endif %}
|
||||
</div>
|
50
src/_includes/layout/core.njk
Normal file
50
src/_includes/layout/core.njk
Normal file
@ -0,0 +1,50 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
<meta property="og:image" content="/_assets/img/cropped.png"/>
|
||||
<link rel="icon" type="image/x-icon" href="/_assets/img/fav.png">
|
||||
{# <link rel="stylesheet" href="/_assets/css/normalize.css" /> #}
|
||||
{# <link rel="stylesheet" href="/_assets/css/styles.css"/> #}
|
||||
|
||||
{% set normalise %}
|
||||
{% include "normalize.css" %}
|
||||
{% endset %}
|
||||
<style>
|
||||
{{normalise | cssmin | safe}}
|
||||
</style>
|
||||
{% set css %}
|
||||
{% include "styles.css" %}
|
||||
{% endset %}
|
||||
<style>
|
||||
{{css | cssmin | safe}}
|
||||
</style>
|
||||
{% if title %}
|
||||
<title>{{ site.title }} - {{ title }}</title>
|
||||
{% else %}
|
||||
<title>{{ site.title }}</title>
|
||||
{% endif %}
|
||||
{% if description %}
|
||||
<meta name="description" content="{{ description }}">
|
||||
{% else %}
|
||||
<meta name="description" content="{{ site.description }}">
|
||||
{% endif %}
|
||||
</head>
|
||||
<body>
|
||||
<main>
|
||||
<div class="page-content">
|
||||
{# <header>{% include 'partials/header.njk' %}</header> #}
|
||||
{# <hr/> #}
|
||||
{{ content | safe }}
|
||||
</div>
|
||||
<footer>
|
||||
<hr/>
|
||||
{% include 'partials/footer.njk' %}
|
||||
</footer>
|
||||
</main>
|
||||
<aside>{% include 'partials/sidebar.njk' %}</aside>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user