chore(website): migrate from docosaurus to zola SSG
This commit is contained in:
parent
13679f77ca
commit
7e8dc4ec5a
49 changed files with 341 additions and 1523 deletions
26
packages/website/templates/base.html
Normal file
26
packages/website/templates/base.html
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang={i18next.language}>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="description" content="Astro description" />
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||
<meta name="generator" content={Astro.generator} />
|
||||
<HeadHrefLangs />
|
||||
<title>{title}</title>
|
||||
<ViewTransitions />
|
||||
|
||||
<link rel="stylesheet" href="style.css" />
|
||||
</head>
|
||||
|
||||
<body transition:animate="fade">
|
||||
<header class="position-sticky py-1 py-lg-3">
|
||||
<Navbar />
|
||||
</header>
|
||||
<main>
|
||||
{% block content %}{% endblock %}
|
||||
</main>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
13
packages/website/templates/index.html
Normal file
13
packages/website/templates/index.html
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
|
||||
{% block content %}
|
||||
{{section.content | safe}}
|
||||
|
||||
<ul>
|
||||
{% for sub in section.subsections %}
|
||||
{% set sub = get_section(path=sub, metadata_only=true) %}
|
||||
<li><a href="{{sub.permalink}}">{{sub.title | safe}}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endblock content %}
|
||||
6
packages/website/templates/page.html
Normal file
6
packages/website/templates/page.html
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
|
||||
{% block content %}
|
||||
{{page.content | safe}}
|
||||
{% endblock content %}
|
||||
12
packages/website/templates/section.html
Normal file
12
packages/website/templates/section.html
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
|
||||
{% block content %}
|
||||
{{section.content | safe}}
|
||||
|
||||
<ul>
|
||||
{% for page in section.pages %}
|
||||
<li><a href="{{page.permalink}}">{{page.path | safe}}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endblock content %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue