mylloon.fr/templates/blog/post.html
Mylloon a49f7dc2dc
All checks were successful
PR Check / lint-and-format (pull_request) Successful in 2m9s
Respect toc attribute in metadata
2024-11-06 14:57:51 +01:00

44 lines
1.3 KiB
HTML

<!DOCTYPE html>
<html lang="fr">
<head dir="ltr">
{{>head.html}}
<link
rel="alternate"
type="application/rss+xml"
title="RSS"
href="/blog/rss"
/>
<link rel="stylesheet" href="/css/blog/post.css" />
{{#data}} {{#post}} {{#metadata}}
{{#math}}{{>libs/katex_head.html}}{{/math}}
{{#syntax_highlight}}{{>libs/hljs_head.html}}{{/syntax_highlight}}
</head>
<body>
<header>
{{>navbar.html}} {{#info}} {{#blog}}
<h1>{{title}}</h1>
{{#date}} {{>blog/date.html}} {{/date}}
<ul>
{{#tags}}
<li>{{name}}</li>
{{/tags}}
</ul>
{{/blog}} {{/info}} {{/metadata}} {{/post}}
</header>
<main>
{{^post}}
<p>This post doesn't exist... sorry</p>
{{/post}} {{#post}} {{#metadata}} {{#info}} {{#blog}} {{#toc}}
<aside>{{&toc_data}}</aside>
{{/toc}} {{/blog}} {{/info}} {{/metadata}}
<article>{{&content}}</article>
{{/post}}
</main>
{{#post}} {{#metadata}}
{{#mermaid}}{{>libs/mermaid_footer.html}}{{/mermaid}}
{{#math}}{{>libs/katex_footer.html}}{{/math}}
{{#syntax_highlight}}{{>libs/hljs_footer.html}}{{/syntax_highlight}}
{{#mail_obfsucated}}{{>libs/mail_obfuscater.html}}{{/mail_obfsucated}}
{{/metadata}} {{/post}} {{/data}}
</body>
</html>