refactor: modify file structure to improve customizability

This commit is contained in:
st1020 2024-01-20 17:58:08 +08:00
parent 9b2e5a305c
commit 67b58641e5
16 changed files with 156 additions and 157 deletions

View file

@ -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 %}