feat: Replace default screen using liquid instead of nunjucks
This commit is contained in:
parent
07656b404f
commit
afc733f4d4
6 changed files with 65 additions and 23 deletions
18
source/screens/demo/pages/default.liquid
Normal file
18
source/screens/demo/pages/default.liquid
Normal 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 %}
|
||||
|
|
@ -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 %}
|
||||
|
|
@ -1,7 +1,5 @@
|
|||
---
|
||||
title: "Hello World"
|
||||
tags:
|
||||
- demoIndex
|
||||
layout: hippie/world.liquid
|
||||
---
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue