feat(website): add content structure files
This commit is contained in:
parent
9c6d935069
commit
7af58fe829
35 changed files with 214 additions and 18 deletions
|
|
@ -13,8 +13,8 @@
|
|||
</head>
|
||||
|
||||
<body transition:animate="fade">
|
||||
<header class="position-sticky py-1 py-lg-3">
|
||||
{% include "partials/navbar.html" %}
|
||||
<header class="msp-position-sticky msp-py-1 msp-py-lg-3">
|
||||
{% include "partials/header.html" %}
|
||||
</header>
|
||||
<main>
|
||||
{% block content %}{% endblock %}
|
||||
|
|
|
|||
18
packages/website/templates/partials/header.html
Normal file
18
packages/website/templates/partials/header.html
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<ul>
|
||||
<li>
|
||||
<a href="/">Overview</a>
|
||||
</li>
|
||||
|
||||
{% for item in get_taxonomy(kind="section") | get(key="items") %}
|
||||
<li>
|
||||
<a href="{{ get_url(path="@/" ~ item.slug ~ "/_index.md") }}">{{ item.name | title }}</a>
|
||||
<ul class="msp-d-none">
|
||||
{% for page in item.pages %}
|
||||
<li>
|
||||
<a href="{{ page.permalink }}">{{ page.title | default(value=page.slug) | title }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
|
@ -3,10 +3,4 @@
|
|||
|
||||
{% 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 %}
|
||||
|
|
|
|||
0
packages/website/templates/taxonomy_list.html
Normal file
0
packages/website/templates/taxonomy_list.html
Normal file
0
packages/website/templates/taxonomy_single.html
Normal file
0
packages/website/templates/taxonomy_single.html
Normal file
Loading…
Add table
Add a link
Reference in a new issue