feat: Replace default screen using liquid instead of nunjucks

This commit is contained in:
sthag 2025-10-26 15:29:12 +01:00
parent 07656b404f
commit afc733f4d4
6 changed files with 65 additions and 23 deletions

View file

@ -0,0 +1,18 @@
---
title: "Default"
---
{% assign pageBase = "../" -%}
{% assign pageId = page.fileSlug -%}
{% assign pageClass = "default" -%}
{% assign bodyClass = "default" -%}
{%- layout "hippie/default.liquid" %}
{% block title %}{{ title }}{% endblock %}
{% block script %}
{{ block.super -}}
<script>
// Page script
console.log("pageBase is: {{ pageBase }}");
</script>
{% endblock %}

View file

@ -1,21 +0,0 @@
---
title: Default
---
{% set pageBase = "../" %}
{% set pageId = page.fileSlug %}
{% extends "hippie/_default.njk" %}
{% block title %}{{ title }}{% endblock %}
{% block head %}
{{ super() }}
{% endblock %}
{% block body %}
<!-- {{ page.fileSlug }}.page -->
{% endblock %}
{% block script %}
{{ super() }}
{% endblock %}

View file

@ -1,7 +1,5 @@
---
title: "Hello World"
tags:
- demoIndex
layout: hippie/world.liquid
---