1159cl/_includes/post.vto
Mario1159 5b6b79892c
Some checks failed
Release / test (push) Failing after 51s
Release / push-docker-image (push) Has been skipped
2024 new version
2024-12-06 20:38:18 -03:00

72 lines
2.1 KiB
Plaintext

<!DOCTYPE html>
<html lang="en" data-theme="light">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>1159</title>
<link rel="stylesheet" href="/css/style.css" />
<link rel="stylesheet" href="/css/colors.css" />
<link rel="stylesheet" href="/css/layout-blog.css" />
<script src="/js/theme-toggle.js"></script>
</head>
<body>
<div class="container">
<div class="sidebar">
{{ include "navbar.vto" }}
</div>
<main>
<header>
<h1>{{ title }}</h1>
<div>
<p>
Posted: <time>{{ date |> date('dd-MM-yyyy') }}</time>
Updated: <time>{{ date |> date('dd-MM-yyyy') }}</time>
</p>
<p>By: {{ author }}</p>
</div>
</header>
<content>
{{ content }}
</content>
{{ include "footer.vto" }}
</main>
<div class="right-column">
<div class="tags">
Tags:
<ul>
{{ for tag of tags }}
<li>{{ tag }}</li>
{{ /for }}
</ul>
</div>
<div class="contents-list">
Table of Contents:
{{ if toc.length }}
<nav class="toc">
<ol>
{{ for item of toc }}
<li>
<a href="#{{ item.slug }}">{{ item.text }}</a>
{{ if item.children.length }}
<ul>
{{ for child of item.children }}
<li>
<a href="#{{ child.slug }}">{{ child.text }}</a>
</li>
{{ /for }}
</ul>
{{ /if }}
</li>
{{ /for }}
</ol>
</nav>
{{ /if }}
</div>
</div>
</div>
</body>
</html>