feat: Change usage of templates
- Remove unnecessary super blocks - Use simple templates - Remove pageBase variable from templates
This commit is contained in:
parent
78a761f9cf
commit
0daf19bd87
7 changed files with 12 additions and 17 deletions
|
|
@ -9,7 +9,6 @@ tags:
|
||||||
{% block title %}Grundlagen{% endblock %}
|
{% block title %}Grundlagen{% endblock %}
|
||||||
|
|
||||||
{% block main %}
|
{% block main %}
|
||||||
<!-- {{ page.fileSlug }}.page -->
|
|
||||||
<div class="demo__intro">
|
<div class="demo__intro">
|
||||||
Dies ist einfach nur Text.<br>Weniger wäre nichts, denn dieser Text ist nicht durch ein spezifisches Element
|
Dies ist einfach nur Text.<br>Weniger wäre nichts, denn dieser Text ist nicht durch ein spezifisches Element
|
||||||
umschlossen.<br>Das ist normalerweise nicht vorgesehen und wird hier nur zur Einführung und Anschauung
|
umschlossen.<br>Das ist normalerweise nicht vorgesehen und wird hier nur zur Einführung und Anschauung
|
||||||
|
|
|
||||||
|
|
@ -3,13 +3,12 @@ title: Clock
|
||||||
tags:
|
tags:
|
||||||
- demoExample
|
- demoExample
|
||||||
---
|
---
|
||||||
{% assign pageBase = "../../" -%}
|
|
||||||
{% assign bodyClass = "body_clock" -%}
|
{% assign bodyClass = "body_clock" -%}
|
||||||
{% layout "hippie/full.liquid" %}
|
{% layout "hippie/simple.liquid" %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
<main>
|
<main>
|
||||||
<canvas id="clock" width="512" height="512"></canvas>
|
<canvas id="rings" width="512" height="512"></canvas>
|
||||||
<p>
|
<p>
|
||||||
<button id="tglFormat">12-Stunden-Format</button>
|
<button id="tglFormat">12-Stunden-Format</button>
|
||||||
</p>
|
</p>
|
||||||
|
|
@ -17,10 +16,9 @@ tags:
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block script %}
|
{% block script %}
|
||||||
{{ block.super -}}
|
|
||||||
<script>
|
<script>
|
||||||
// Page script
|
// Page script
|
||||||
const canvas = document.getElementById('clock');
|
const canvas = document.getElementById('rings');
|
||||||
const ctx = canvas.getContext('2d');
|
const ctx = canvas.getContext('2d');
|
||||||
let is24HourFormat = true;
|
let is24HourFormat = true;
|
||||||
const colorDayOfWeek = getComputedStyle(document.documentElement).getPropertyValue('--clock-color-yellow').trim();
|
const colorDayOfWeek = getComputedStyle(document.documentElement).getPropertyValue('--clock-color-yellow').trim();
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ tags:
|
||||||
{% assign pageBase = "../../" -%}
|
{% assign pageBase = "../../" -%}
|
||||||
{% assign pageId = page.fileSlug -%}
|
{% assign pageId = page.fileSlug -%}
|
||||||
{% assign bodyClass = "body_start" -%}
|
{% assign bodyClass = "body_start" -%}
|
||||||
{% layout "hippie/full.liquid" %}
|
{% layout "hippie/simple.liquid" %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
<main>
|
<main>
|
||||||
|
|
@ -35,7 +35,6 @@ tags:
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block script %}
|
{% block script %}
|
||||||
{{ block.super -}}
|
|
||||||
<script>
|
<script>
|
||||||
// Page script
|
// Page script
|
||||||
// NOTE: https://duckduckgo.com/duckduckgo-help-pages/settings/params
|
// NOTE: https://duckduckgo.com/duckduckgo-help-pages/settings/params
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ title: Blank
|
||||||
---
|
---
|
||||||
{% assign pageBase = "../../" -%}
|
{% assign pageBase = "../../" -%}
|
||||||
{% assign pageId = page.fileSlug -%}
|
{% assign pageId = page.fileSlug -%}
|
||||||
{% layout "hippie/full.liquid" %}
|
{% layout "hippie/simple.liquid" %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
<!-- {{ title }} -->
|
<!-- {{ title }} -->
|
||||||
|
|
|
||||||
|
|
@ -8,14 +8,14 @@
|
||||||
{% block links %}
|
{% block links %}
|
||||||
{{ block.super -}}
|
{{ block.super -}}
|
||||||
<link href="/vendor/bootstrap-icons/font/bootstrap-icons.min.css" rel="stylesheet">
|
<link href="/vendor/bootstrap-icons/font/bootstrap-icons.min.css" rel="stylesheet">
|
||||||
<link href="{{ pageBase }}css/ui.css" media="all" rel="stylesheet"/>
|
<link href="/css/ui.css" media="all" rel="stylesheet"/>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block script %}
|
{% block script %}
|
||||||
<script src="/vendor/jquery.min.js"></script>
|
<script src="/vendor/jquery.min.js"></script>
|
||||||
<script src="/vendor/hippie-script.js"></script>
|
<script src="/vendor/hippie-script.js"></script>
|
||||||
<script src="{{ pageBase }}js/globals.js"></script>
|
<script src="/js/globals.js"></script>
|
||||||
<script src="{{ pageBase }}js/app.js"></script>
|
<script src="/js/app.js"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
const frameHeader = document.querySelector('body > header.io');
|
const frameHeader = document.querySelector('body > header.io');
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@
|
||||||
{% render "hippie/partials/links.liquid" %}
|
{% render "hippie/partials/links.liquid" %}
|
||||||
{% comment %}<link rel="stylesheet" type="text/css" media="all" href="css/demo.css"/>{% endcomment %}
|
{% comment %}<link rel="stylesheet" type="text/css" media="all" href="css/demo.css"/>{% endcomment %}
|
||||||
{% comment %}<link rel="stylesheet" type="text/css" media="all" href="{{ pageBase | subdir(2) }}css/demo.css"/>{% endcomment %}
|
{% comment %}<link rel="stylesheet" type="text/css" media="all" href="{{ pageBase | subdir(2) }}css/demo.css"/>{% endcomment %}
|
||||||
<link rel="stylesheet" media="all" href="{{ pageBase }}css/demo.css" type="text/css"/>
|
<link rel="stylesheet" media="all" href="/css/demo.css" type="text/css"/>
|
||||||
{% endblock -%}
|
{% endblock -%}
|
||||||
{% render "hippie/partials/log-log" with "HEAD end :: Links parsed, starting to load." as msg -%}
|
{% render "hippie/partials/log-log" with "HEAD end :: Links parsed, starting to load." as msg -%}
|
||||||
{% endblock -%}
|
{% endblock -%}
|
||||||
|
|
|
||||||
|
|
@ -17,8 +17,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% comment %}<link href='https://fonts.googleapis.com/css?family=Roboto:400,300,400italic,500,500italic,700' rel='stylesheet' type='text/css'>{% endcomment %}
|
{% comment %}<link href='https://fonts.googleapis.com/css?family=Roboto:400,300,400italic,500,500italic,700' rel='stylesheet' type='text/css'>{% endcomment %}
|
||||||
<link rel="stylesheet" type="text/css" media="all" href="{{ pageBase }}css/demo.css"/>
|
{% comment %}<link rel="stylesheet" type="text/css" media="print" href="/css/print.css"/>{% endcomment %}
|
||||||
{% comment %}<link rel="stylesheet" type="text/css" media="print" href="{{ pageBase }}css/print.css"/>{% endcomment %}
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
|
|
@ -38,8 +37,8 @@
|
||||||
{% block script %}
|
{% block script %}
|
||||||
<script src="/vendor/jquery.min.js"></script>
|
<script src="/vendor/jquery.min.js"></script>
|
||||||
<script src="/vendor/hippie-script.js"></script>
|
<script src="/vendor/hippie-script.js"></script>
|
||||||
<script src="{{ pageBase }}js/globals.js"></script>
|
<script src="/js/globals.js"></script>
|
||||||
<script src="{{ pageBase }}js/app.js"></script>
|
<script src="/js/app.js"></script>
|
||||||
<script>
|
<script>
|
||||||
// Setup global things for all screens
|
// Setup global things for all screens
|
||||||
setup();
|
setup();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue