feat: Replace nunjucks with new template and screen

- Replace ui index with liquid
- Add simple template inheriting from default
This commit is contained in:
sthag 2026-02-15 21:59:25 +01:00
parent e11cb2f184
commit 36cf5178f2
3 changed files with 39 additions and 25 deletions

View file

@ -0,0 +1,24 @@
---
title: UI
tags:
- demoExample
- index
---
{% layout "hippie/simple.liquid" %}
{% block title %}{{ title }}{% endblock %}
{% block body %}
<div class="sec_main_center">
<nav role="doc-toc">
<h1>{{ title }}</h1>
<ul class="list_link">
{%- for ui in collections.ui -%}
<li>
<a href="{{ ui.page.url }}">{{ ui.data.title }}</a>
</li>
{%- endfor -%}
</ul>
</nav>
</div>
{% endblock %}

View file

@ -1,25 +0,0 @@
---
title: UI
tags:
- demoExample
- index
---
{% extends "demo/_default.njk" %}
{% import "hippie/macros/_placeholder.njk" as ph %}
{% block title %}{{ title }}{% endblock %}
{% block body %}
<div class="sec_main_center">
<nav role="doc-toc">
<h1>{{ title }}</h1>
<ul class="list_link">
{%- for ui in collections.ui -%}
<li>
<a href="{{ ui.page.url }}">{{ ui.data.title }}</a>
</li>
{%- endfor -%}
</ul>
</nav>
</div>
{% endblock %}

View file

@ -0,0 +1,15 @@
{% assign pageId = page.fileSlug -%}
{% layout "hippie/default.liquid" %}
{% block title %}{{ title }}{% endblock %}
{% block links %}
{{ block.super -}}
<link href="/css/demo.css" media="all" rel="stylesheet"/>
{% endblock %}
{% block script %}
<script src="/vendor/hippie-script.js"></script>
<script src="/js/globals.js"></script>
<script src="/js/app.js"></script>
{% endblock %}