mirror of
https://github.com/SebastianStork/kita.git
synced 2026-01-21 14:31:35 +01:00
refactor: modify file structure to improve customizability
This commit is contained in:
parent
9b2e5a305c
commit
67b58641e5
16 changed files with 156 additions and 157 deletions
|
|
@ -1,10 +1,13 @@
|
|||
{% extends "index.html" %}<!---->
|
||||
{% block main %}<!---->
|
||||
|
||||
{% for asset in page.assets %}<!---->
|
||||
{% if asset is ending_with("data.toml") %}<!---->
|
||||
{% set data = load_data(path=asset, format="toml") %}<!---->
|
||||
<h1 class="mb-16">{{ page.title }}</h1>
|
||||
{% set_global data = load_data(path=asset, format="toml") %}<!---->
|
||||
{% endif %}<!---->
|
||||
{% endfor %}<!---->
|
||||
|
||||
<h1 class="mb-16">{{ page.title }}</h1>
|
||||
{% for project in data.project %}
|
||||
<div class="not-prose block-bg my-4 flex w-full flex-col rounded-lg px-5 py-1.5">
|
||||
<h3 class="my-2 text-xl font-bold text-black dark:text-white">{{ project.name }}</h3>
|
||||
|
|
@ -29,8 +32,4 @@
|
|||
</div>
|
||||
</div>
|
||||
{% endfor %}<!---->
|
||||
|
||||
{% break %}<!---->
|
||||
{% endif %}<!---->
|
||||
{% endfor %}<!---->
|
||||
{% endblock main %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue