I’m currently working my website with Jekyll 3.9. All my layouts inherited from default
are working fine except the post
one where I only get plain HTML without the code from the default layout.
Kramdown is already set to GFM mode in _config.yml
.
Here is my default layout:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<title>Funeoz's blog</title>
<link rel="stylesheet" href="{{ site.baseurl }}/assets/css/main.css">
<link rel="stylesheet" href="{{ site.baseurl }}/assets/css/left-panel.css">
<link rel="stylesheet" href="{{ site.baseurl }}/assets/css/nav-bar.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
</head>
<body>
<main class="page-content" aria-label="Content">
<div class="columns is-gapless is-desktop">
<div id="left-side" class="column is-one-quarter has-text-centered">
{% include left-panel.html %}
</div>
<div class="column">
{% include nav-bar.html %}
<div class="wrapper">
{{ content }}
</div>
</div>
</div>
</main>
</body>
</html>
My post layout:
---
layout: default
---
<article class="post">
<header class="post-header">
<h1 class="title">{{ page.title | escape }}</h1>
</header>
<div class="post-content">
{{ content }}
</div>
</article>
Here is an example of a post in markdown (only the beginning) :
---
layout: post
title: test
----
# Quid bello Haemonio
## Piceis Pandione epops io suos mandata
Lorem markdownum moriturus. Thisbaeas inferna quod exspectato tenendae,
[stimuletur](http://formarat.io/nec.aspx) ament lacrimis Idaeumque humo quoque
cum, Cydoneasque lacus et *adhuc enim*. Nulla adversam pulcherrime raptu honorem
suo glaebis, tollere: genitoris, et illam. Loco tuas barbarus.