Compare commits
6 commits
f2ff20ce73
...
a7431ec85d
| Author | SHA1 | Date | |
|---|---|---|---|
| a7431ec85d | |||
| 2091dc4f30 | |||
| 99b98635e7 | |||
| 92f3c4f81f | |||
| 6a717b7ab8 | |||
| fdef673886 |
26 changed files with 206 additions and 227 deletions
|
|
@ -35,7 +35,8 @@ export default async function (eleventyConfig) {
|
||||||
name: 'Vorname Nachname',
|
name: 'Vorname Nachname',
|
||||||
address: 'Straße Nr., PLZ Ort',
|
address: 'Straße Nr., PLZ Ort',
|
||||||
phone: '+49 (0)101 1337 48',
|
phone: '+49 (0)101 1337 48',
|
||||||
mail: 'name@domain.tld'
|
mail: 'name@domain.tld',
|
||||||
|
domain: 'https://domain.tld'
|
||||||
},
|
},
|
||||||
debugMode: true,
|
debugMode: true,
|
||||||
legacyMode: false
|
legacyMode: false
|
||||||
|
|
@ -46,7 +47,7 @@ export default async function (eleventyConfig) {
|
||||||
});
|
});
|
||||||
|
|
||||||
eleventyConfig.addShortcode('link', function (target, text, attrId, attrClass) {
|
eleventyConfig.addShortcode('link', function (target, text, attrId, attrClass) {
|
||||||
if (text === '') {
|
if (!text || text === '') {
|
||||||
text = target;
|
text = target;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -341,6 +341,7 @@ class DateDisplay {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: Kompatibilität für Zeiger
|
||||||
function checkButtonAndTarget(event, element, button = 0) {
|
function checkButtonAndTarget(event, element, button = 0) {
|
||||||
return (
|
return (
|
||||||
event.button === button &&
|
event.button === button &&
|
||||||
|
|
|
||||||
|
|
@ -21,9 +21,9 @@ class HippieTaskBar {
|
||||||
|
|
||||||
// TODO: Ereignisse besser delegieren
|
// TODO: Ereignisse besser delegieren
|
||||||
init() {
|
init() {
|
||||||
this.element.addEventListener('mousedown', this.onMouseDown.bind(this));
|
this.element.addEventListener('pointerdown', this.onDown.bind(this));
|
||||||
document.addEventListener('mousemove', this.onMouseMove.bind(this));
|
document.addEventListener('pointermove', this.onMove.bind(this));
|
||||||
document.addEventListener('mouseup', this.onMouseUp.bind(this));
|
document.addEventListener('pointerup', this.onUp.bind(this));
|
||||||
|
|
||||||
const dateElement = document.createElement('span');
|
const dateElement = document.createElement('span');
|
||||||
|
|
||||||
|
|
@ -34,7 +34,7 @@ class HippieTaskBar {
|
||||||
this.setOptions(this.options.position);
|
this.setOptions(this.options.position);
|
||||||
}
|
}
|
||||||
|
|
||||||
onMouseDown(event) {
|
onDown(event) {
|
||||||
if (checkButtonAndTarget(event, this.element, 0)) {
|
if (checkButtonAndTarget(event, this.element, 0)) {
|
||||||
console.debug('Drag mode enabled');
|
console.debug('Drag mode enabled');
|
||||||
|
|
||||||
|
|
@ -48,7 +48,7 @@ class HippieTaskBar {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
onMouseMove(event) {
|
onMove(event) {
|
||||||
if (this.isDragging) {
|
if (this.isDragging) {
|
||||||
this.options.position = getClosestEdgeToMouse(event);
|
this.options.position = getClosestEdgeToMouse(event);
|
||||||
const borderRadius = '4px';
|
const borderRadius = '4px';
|
||||||
|
|
@ -116,7 +116,7 @@ class HippieTaskBar {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
onMouseUp() {
|
onUp() {
|
||||||
if (event.target === this.placeholder) {
|
if (event.target === this.placeholder) {
|
||||||
console.debug('Drag mode disabled');
|
console.debug('Drag mode disabled');
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
title: Basics
|
title: Basics
|
||||||
tags:
|
tags:
|
||||||
- demoIndex
|
- demoIndex
|
||||||
|
order: 2
|
||||||
---
|
---
|
||||||
{% layout 'hippie/page.liquid' %}
|
{% layout 'hippie/page.liquid' %}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
title: Components
|
title: Components
|
||||||
tags:
|
tags:
|
||||||
- demoIndex
|
- demoIndex
|
||||||
|
order: 3
|
||||||
---
|
---
|
||||||
{% layout 'hippie/page.liquid' %}
|
{% layout 'hippie/page.liquid' %}
|
||||||
|
|
||||||
|
|
@ -306,7 +307,7 @@ tags:
|
||||||
<input id="inpPass" type="password"/>
|
<input id="inpPass" type="password"/>
|
||||||
<span id="hintPass" style="visibility:hidden"><kbd>Shift</kbd> is pressed.</span>
|
<span id="hintPass" style="visibility:hidden"><kbd>Shift</kbd> is pressed.</span>
|
||||||
<br>
|
<br>
|
||||||
<input id ="inpText" type="text"/>
|
<input id="inpText" type="text"/>
|
||||||
<span id="hintText"><kbd>CapsLock</kbd> is on.</span>
|
<span id="hintText"><kbd>CapsLock</kbd> is on.</span>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
32
source/screens/demo/examples/blog.liquid
Normal file
32
source/screens/demo/examples/blog.liquid
Normal file
|
|
@ -0,0 +1,32 @@
|
||||||
|
---
|
||||||
|
title: Blog
|
||||||
|
tags:
|
||||||
|
- demoExample
|
||||||
|
---
|
||||||
|
{% layout 'hippie/simple.liquid' %}
|
||||||
|
|
||||||
|
{% block body %}
|
||||||
|
<div class="sec_main_center">
|
||||||
|
<header class="header_txt">
|
||||||
|
<h1>Blog</h1>
|
||||||
|
</header>
|
||||||
|
<nav role="doc-toc">
|
||||||
|
<h2>Inhaltsverzeichnis</h2>
|
||||||
|
<ul>
|
||||||
|
{%- for blog in collections.blog -%}
|
||||||
|
<li>
|
||||||
|
<a href="{{ blog.page.url }}">{{ blog.data.title }}</a>
|
||||||
|
</li>
|
||||||
|
{%- endfor -%}
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
<hr class="double dotted">
|
||||||
|
{%- for post in collections.article -%}
|
||||||
|
<article>
|
||||||
|
{{ post.content }}
|
||||||
|
</article>
|
||||||
|
{%- endfor -%}
|
||||||
|
<hr/>
|
||||||
|
<address>{% text hippie.placeholders.name %}</address>
|
||||||
|
</div>
|
||||||
|
{% endblock %}
|
||||||
|
|
@ -1,51 +0,0 @@
|
||||||
---
|
|
||||||
title: Blog
|
|
||||||
tags:
|
|
||||||
- demoExample
|
|
||||||
---
|
|
||||||
{% set pageBase = "../" %}
|
|
||||||
{% set pageId = page.fileSlug %}
|
|
||||||
|
|
||||||
{% extends "demo/_default.njk" %}
|
|
||||||
{% import "hippie/macros/_placeholder.njk" as ph %}
|
|
||||||
{% import "hippie/macros/_song.njk" as song %}
|
|
||||||
|
|
||||||
{% block title %}{{ title }}
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block head %}
|
|
||||||
{{ super() }}
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block body %}
|
|
||||||
<!-- {{ page.fileSlug }}.page -->
|
|
||||||
<div class="sec_main_center">
|
|
||||||
<header class="header_txt">
|
|
||||||
<h1>Blog</h1>
|
|
||||||
</header>
|
|
||||||
<nav role="doc-toc">
|
|
||||||
<h2>Inhaltsverzeichnis</h2>
|
|
||||||
<ul>
|
|
||||||
{%- for song in collections.song -%}
|
|
||||||
<li>
|
|
||||||
<a href="{{ song.page.url }}">{{ song.data.title }}</a>
|
|
||||||
</li>
|
|
||||||
{%- endfor -%}
|
|
||||||
</ul>
|
|
||||||
</nav>
|
|
||||||
<h2>Vorwort</h2>
|
|
||||||
<p>Liederbuch für
|
|
||||||
<em>Name</em>.</p>
|
|
||||||
<p>Gibt es gebunden und hier
|
|
||||||
{{ ph.link() }}.<br/>
|
|
||||||
Bestellungen bitte an
|
|
||||||
{{ ph.name() }}
|
|
||||||
richten.</p>
|
|
||||||
<hr class="double dotted">
|
|
||||||
{%- for post in collections.article -%}
|
|
||||||
{{ post.content }}
|
|
||||||
{%- endfor -%}
|
|
||||||
<hr/>
|
|
||||||
<address>{{ ph.name() }}</address>
|
|
||||||
</div>
|
|
||||||
{% endblock %}
|
|
||||||
|
|
@ -3,7 +3,7 @@ tags:
|
||||||
- blog
|
- blog
|
||||||
- article
|
- article
|
||||||
title: "Artikel"
|
title: "Artikel"
|
||||||
releaseDate: JJJJ
|
publishDate: JJJJ
|
||||||
description: Text
|
description: Text
|
||||||
---
|
---
|
||||||
# Titel
|
# Titel
|
||||||
|
|
|
||||||
69
source/screens/demo/examples/card.liquid
Normal file
69
source/screens/demo/examples/card.liquid
Normal file
|
|
@ -0,0 +1,69 @@
|
||||||
|
---
|
||||||
|
title: Card
|
||||||
|
tags:
|
||||||
|
- demoExample
|
||||||
|
---
|
||||||
|
{% assign pageClass = "html_card" %}
|
||||||
|
{% layout 'hippie/simple.liquid' %}
|
||||||
|
|
||||||
|
{% block body %}
|
||||||
|
<div class="card_bkg">
|
||||||
|
<div id="dither"></div>
|
||||||
|
{% render 'hippie/partials/placeholder-flag.liquid', type: '', id: 'flag' %}
|
||||||
|
{% comment %}<img id="dither" src="art/flag_dither.png" width="1920" height="1200" alt="Background flag dithered"/>{% endcomment %}
|
||||||
|
</div>
|
||||||
|
<div class="card_box">
|
||||||
|
<main>
|
||||||
|
<p>Titel<br/>und Beschreibung</p>
|
||||||
|
<h1>{% text hippie.placeholders.name %}</h1>
|
||||||
|
<p>
|
||||||
|
{% link hippie.placeholders.mail, '', '', 'card_address' %}<br/>
|
||||||
|
{% link hippie.placeholders.domain, 'site.tld', '', 'decent' %}
|
||||||
|
·
|
||||||
|
{% text hippie.placeholders.address, '', 'decent' %}</p>
|
||||||
|
</main>
|
||||||
|
</div>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block script %}
|
||||||
|
<script>
|
||||||
|
const flag = document.getElementById('flag');
|
||||||
|
let colors = new Array();
|
||||||
|
let iId = undefined;
|
||||||
|
let position = 0;
|
||||||
|
|
||||||
|
for (let i = 1; i <= flag.childElementCount; i++) {
|
||||||
|
colors.push(document.getElementById('triangle-' + i).getAttribute('fill'));
|
||||||
|
}
|
||||||
|
|
||||||
|
document
|
||||||
|
.querySelector('main')
|
||||||
|
.addEventListener('mouseenter', () => {
|
||||||
|
iId = setInterval(() => {
|
||||||
|
for (let i = 1; i <= colors.length; i++) {
|
||||||
|
position++;
|
||||||
|
|
||||||
|
if (position >= colors.length) {
|
||||||
|
position = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
document
|
||||||
|
.getElementById('triangle-' + i)
|
||||||
|
.setAttribute('fill', colors[position]);
|
||||||
|
}
|
||||||
|
|
||||||
|
position++;
|
||||||
|
|
||||||
|
if (position >= colors.length) {
|
||||||
|
position = 0;
|
||||||
|
}
|
||||||
|
}, 600);
|
||||||
|
});
|
||||||
|
|
||||||
|
document
|
||||||
|
.querySelector('main')
|
||||||
|
.addEventListener('mouseleave', () => {
|
||||||
|
iId && clearInterval(iId);
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
{% endblock %}
|
||||||
|
|
@ -1,83 +0,0 @@
|
||||||
---
|
|
||||||
title: Card
|
|
||||||
tags:
|
|
||||||
- demoExample
|
|
||||||
---
|
|
||||||
{% set pageId = page.fileSlug %}
|
|
||||||
{% set pageClass = "html_card" %}
|
|
||||||
|
|
||||||
{% extends "demo/_default.njk" %}
|
|
||||||
{% import "hippie/macros/_placeholder.njk" as ph %}
|
|
||||||
|
|
||||||
{% block title %}{{ title }}
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block head %}
|
|
||||||
{{ super() }}
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block body %}
|
|
||||||
|
|
||||||
<!-- {{ page.fileSlug }}.page -->
|
|
||||||
<div class="card_bkg">
|
|
||||||
<div id="dither"></div>
|
|
||||||
{{ ph.flag('svg', '', 'flag', '') }}
|
|
||||||
{# <img id="dither" src="art/flag_dither.png" width="1920" height="1200" alt="Background flag dithered"/> #}
|
|
||||||
</div>
|
|
||||||
<div class="card_box">
|
|
||||||
<div id="js_content">
|
|
||||||
<p>Titel<br/>und Beschreibung</p>
|
|
||||||
<h1>{{ ph.name() }}</h1>
|
|
||||||
<p>
|
|
||||||
{{ ph.email('card_address') }}<br/>
|
|
||||||
{{ ph.link('decent', 'site.tld') }}
|
|
||||||
·
|
|
||||||
{{ ph.address('decent') }}</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block script %}
|
|
||||||
<script>
|
|
||||||
const flag = document.getElementById("flag");
|
|
||||||
let colors = new Array();
|
|
||||||
let iId = undefined;
|
|
||||||
let position = 0;
|
|
||||||
|
|
||||||
for (let i = 1; i <= flag.childElementCount; i++) {
|
|
||||||
colors.push(document.getElementById("triangle-" + i).getAttribute("fill"));
|
|
||||||
}
|
|
||||||
|
|
||||||
// console.log(colors);
|
|
||||||
|
|
||||||
document
|
|
||||||
.getElementById('js_content')
|
|
||||||
.addEventListener('mouseenter', () => {
|
|
||||||
iId = setInterval(() => {
|
|
||||||
for (let i = 1; i <= colors.length; i++) {
|
|
||||||
position++;
|
|
||||||
|
|
||||||
if (position >= colors.length) {
|
|
||||||
position = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
document
|
|
||||||
.getElementById("triangle-" + i)
|
|
||||||
.setAttribute("fill", colors[position]);
|
|
||||||
}
|
|
||||||
|
|
||||||
position++;
|
|
||||||
|
|
||||||
if (position >= colors.length) {
|
|
||||||
position = 0;
|
|
||||||
}
|
|
||||||
}, 600);
|
|
||||||
});
|
|
||||||
|
|
||||||
document
|
|
||||||
.getElementById('js_content')
|
|
||||||
.addEventListener('mouseleave', () => {
|
|
||||||
iId && clearInterval(iId);
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
{% endblock %}
|
|
||||||
|
|
@ -17,11 +17,13 @@ tags:
|
||||||
<main></main>
|
<main></main>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block script %}
|
{% block assets %}
|
||||||
<script src="/vendor/hippie-script.js"></script>
|
<script src="/vendor/hippie-script.js"></script>
|
||||||
<script src="/js/globals.js"></script>
|
<script src="/js/globals.js"></script>
|
||||||
<script src="/js/app.js"></script>
|
<script src="/js/app.js"></script>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block script %}
|
||||||
<script>
|
<script>
|
||||||
class HippieClock {
|
class HippieClock {
|
||||||
constructor(element, date = new Date(), options = {}) {
|
constructor(element, date = new Date(), options = {}) {
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@ title: Intro
|
||||||
tags:
|
tags:
|
||||||
- game
|
- game
|
||||||
---
|
---
|
||||||
|
|
||||||
{% assign bodyClass = 'body_intro' -%}
|
{% assign bodyClass = 'body_intro' -%}
|
||||||
{% layout 'hippie/app.liquid' %}
|
{% layout 'hippie/app.liquid' %}
|
||||||
|
|
||||||
|
|
@ -46,9 +45,13 @@ tags:
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{%- block script %}
|
{% block assets %}
|
||||||
{{ block.super -}}
|
{{ block.super -}}
|
||||||
<script src="/js/intro.js"></script>
|
<script src="/js/intro.js"></script>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{%- block script %}
|
||||||
|
{{ block.super -}}
|
||||||
<script>
|
<script>
|
||||||
//let intro = new Intro('Intro');
|
//let intro = new Intro('Intro');
|
||||||
//intro.init();
|
//intro.init();
|
||||||
|
|
|
||||||
39
source/screens/demo/examples/songbook.liquid
Normal file
39
source/screens/demo/examples/songbook.liquid
Normal file
|
|
@ -0,0 +1,39 @@
|
||||||
|
---
|
||||||
|
title: Songbook
|
||||||
|
tags:
|
||||||
|
- demoExample
|
||||||
|
---
|
||||||
|
{% layout 'hippie/simple.liquid' %}
|
||||||
|
|
||||||
|
{% block body %}
|
||||||
|
<div class="sec_main_center">
|
||||||
|
<header class="header_txt">
|
||||||
|
<h1>Titel</h1>
|
||||||
|
<p>Jahr</p>
|
||||||
|
</header>
|
||||||
|
<nav role="doc-toc">
|
||||||
|
<h2>Inhaltsverzeichnis</h2>
|
||||||
|
<ul>
|
||||||
|
{%- for song in collections.song -%}
|
||||||
|
<li>
|
||||||
|
<a href="{{ song.page.url }}">{{ song.data.title }}</a>
|
||||||
|
</li>
|
||||||
|
{%- endfor -%}
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
<h2>Vorwort</h2>
|
||||||
|
<p>Liederbuch für
|
||||||
|
<em>Name</em>.</p>
|
||||||
|
<p>Gibt es gebunden und hier
|
||||||
|
{% link hippie.placeholders.domain %}.<br/>
|
||||||
|
Bestellungen bitte an
|
||||||
|
{% text hippie.placeholders.name %}
|
||||||
|
richten.</p>
|
||||||
|
<hr class="double dotted">
|
||||||
|
{%- for piece in collections.song -%}
|
||||||
|
{% render 'hippie/partials/song.liquid', index: forloop.index0, data: piece.data, content: piece.content %}
|
||||||
|
{%- endfor -%}
|
||||||
|
<hr/>
|
||||||
|
<address>{% text hippie.placeholders.name %}</address>
|
||||||
|
</div>
|
||||||
|
{% endblock %}
|
||||||
|
|
@ -1,52 +0,0 @@
|
||||||
---
|
|
||||||
title: Songbook
|
|
||||||
tags:
|
|
||||||
- demoExample
|
|
||||||
---
|
|
||||||
{% set pageBase = "../" %}
|
|
||||||
{% set pageId = page.fileSlug %}
|
|
||||||
|
|
||||||
{% extends "demo/_default.njk" %}
|
|
||||||
{% import "hippie/macros/_placeholder.njk" as ph %}
|
|
||||||
{% import "hippie/macros/_song.njk" as song %}
|
|
||||||
|
|
||||||
{% block title %}{{ title }}
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block head %}
|
|
||||||
{{ super() }}
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block body %}
|
|
||||||
<!-- {{ page.fileSlug }}.page -->
|
|
||||||
<div class="sec_main_center">
|
|
||||||
<header class="header_txt">
|
|
||||||
<h1>Titel</h1>
|
|
||||||
<p>Jahr</p>
|
|
||||||
</header>
|
|
||||||
<nav role="doc-toc">
|
|
||||||
<h2>Inhaltsverzeichnis</h2>
|
|
||||||
<ul>
|
|
||||||
{%- for song in collections.song -%}
|
|
||||||
<li>
|
|
||||||
<a href="{{ song.page.url }}">{{ song.data.title }}</a>
|
|
||||||
</li>
|
|
||||||
{%- endfor -%}
|
|
||||||
</ul>
|
|
||||||
</nav>
|
|
||||||
<h2>Vorwort</h2>
|
|
||||||
<p>Liederbuch für
|
|
||||||
<em>Name</em>.</p>
|
|
||||||
<p>Gibt es gebunden und hier
|
|
||||||
{{ ph.link() }}.<br/>
|
|
||||||
Bestellungen bitte an
|
|
||||||
{{ ph.name() }}
|
|
||||||
richten.</p>
|
|
||||||
<hr class="double dotted">
|
|
||||||
{%- for piece in collections.song -%}
|
|
||||||
{{ song.simple(loop.index0, piece.data, piece.content) }}
|
|
||||||
{%- endfor -%}
|
|
||||||
<hr/>
|
|
||||||
<address>{{ ph.name() }}</address>
|
|
||||||
</div>
|
|
||||||
{% endblock %}
|
|
||||||
|
|
@ -21,9 +21,12 @@ tags:
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{%- block script %}
|
{% block assets %}
|
||||||
<script src="/js/app.js"></script>
|
{{ block.super -}}
|
||||||
<script src="/js/drag.js"></script>
|
<script src="/js/drag.js"></script>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{%- block script %}
|
||||||
<script>
|
<script>
|
||||||
// Get the space element
|
// Get the space element
|
||||||
const space = document.getElementById('space');
|
const space = document.getElementById('space');
|
||||||
|
|
|
||||||
|
|
@ -49,10 +49,13 @@ tags:
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block assets %}
|
||||||
|
{{ block.super -}}
|
||||||
|
<script src="/js/windows.js"></script>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
{%- block script %}
|
{%- block script %}
|
||||||
{{ block.super -}}
|
{{ block.super -}}
|
||||||
|
|
||||||
<script src="/js/windows.js"></script>
|
|
||||||
<script>
|
<script>
|
||||||
console.log(HIPPIE.brand);
|
console.log(HIPPIE.brand);
|
||||||
// Get the space element
|
// Get the space element
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
---
|
---
|
||||||
permalink: "/"
|
permalink: "/"
|
||||||
title: Index
|
title: Index
|
||||||
tags:
|
|
||||||
- demoIndex
|
|
||||||
---
|
---
|
||||||
{% assign pageId = page.fileSlug -%}
|
{% assign pageId = page.fileSlug -%}
|
||||||
{% assign pageClass = 'h_full_view' -%}
|
{% assign pageClass = 'h_full_view' -%}
|
||||||
|
|
@ -35,7 +33,8 @@ tags:
|
||||||
</div>
|
</div>
|
||||||
<nav>
|
<nav>
|
||||||
<ul class="block link">
|
<ul class="block link">
|
||||||
{% for link in collections.demoIndex %}
|
{% assign indexByOrder = collections.demoIndex | sort: 'data.order' %}
|
||||||
|
{% for link in indexByOrder %}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ link.page.url }}">{{ link.data.title }}</a>
|
<a href="{{ link.page.url }}">{{ link.data.title }}</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
@ -47,7 +46,6 @@ tags:
|
||||||
<h3>Page</h3>
|
<h3>Page</h3>
|
||||||
<ul class="block link">
|
<ul class="block link">
|
||||||
{% assign pagesByTitle = collections.demoPage | sort: 'data.title' %}
|
{% assign pagesByTitle = collections.demoPage | sort: 'data.title' %}
|
||||||
|
|
||||||
{% for link in pagesByTitle %}
|
{% for link in pagesByTitle %}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ link.page.url }}">{{ link.data.title }}</a>
|
<a href="{{ link.page.url }}">{{ link.data.title }}</a>
|
||||||
|
|
@ -58,7 +56,8 @@ tags:
|
||||||
<section>
|
<section>
|
||||||
<h3>Example</h3>
|
<h3>Example</h3>
|
||||||
<ul class="block link">
|
<ul class="block link">
|
||||||
{% for link in collections.demoExample %}
|
{% assign examplesByTitle = collections.demoExample | sort: 'data.title' %}
|
||||||
|
{% for link in examplesByTitle %}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ link.page.url }}">{{ link.data.title }}</a>
|
<a href="{{ link.page.url }}">{{ link.data.title }}</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
title: Introduction
|
title: Introduction
|
||||||
tags:
|
tags:
|
||||||
- demoIndex
|
- demoIndex
|
||||||
|
order: 1
|
||||||
---
|
---
|
||||||
{% layout 'hippie/page.liquid' %}
|
{% layout 'hippie/page.liquid' %}
|
||||||
|
|
||||||
|
|
@ -28,13 +29,7 @@ tags:
|
||||||
{% block script %}
|
{% block script %}
|
||||||
{{ block.super -}}
|
{{ block.super -}}
|
||||||
<script>
|
<script>
|
||||||
assetsLoaded = true;
|
|
||||||
logPerf('Assets loaded.', assetsLoaded);
|
|
||||||
// Page specific
|
|
||||||
// ------------------------------------------------------------------------------
|
|
||||||
composeMail('special', 'me', 'domain', 'tld', 'Me', 'HIPPIE')
|
composeMail('special', 'me', 'domain', 'tld', 'Me', 'HIPPIE')
|
||||||
composeMail('.general', 'name', 'domain', 'tld', '', '')
|
composeMail('.general', 'name', 'domain', 'tld', '', '')
|
||||||
|
|
||||||
logPerf('Application ready... not.');
|
|
||||||
</script>
|
</script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
title: Layouts
|
title: Layouts
|
||||||
tags:
|
tags:
|
||||||
- demoIndex
|
- demoIndex
|
||||||
|
order: 4
|
||||||
---
|
---
|
||||||
{% layout 'hippie/page.liquid' %}
|
{% layout 'hippie/page.liquid' %}
|
||||||
|
|
||||||
|
|
@ -298,14 +299,13 @@ tags:
|
||||||
</section>
|
</section>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block assets %}
|
||||||
|
{{ block.super -}}
|
||||||
|
<script src="/vendor/jq-sticky-anything.min.js"></script>
|
||||||
|
{% endblock %}
|
||||||
{% block script %}
|
{% block script %}
|
||||||
{{ block.super -}}
|
{{ block.super -}}
|
||||||
<script src="/vendor/jq-sticky-anything.min.js" type="text/javascript"></script>
|
|
||||||
<script>
|
<script>
|
||||||
assetsLoaded = true;
|
|
||||||
logPerf('Assets loaded.', assetsLoaded);
|
|
||||||
// Page specific
|
|
||||||
// ------------------------------------------------------------------------------
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
// jq-sticky-anything
|
// jq-sticky-anything
|
||||||
$('#js_demo_fix').stickThis({pushup: '#js_demo_stop'});
|
$('#js_demo_fix').stickThis({pushup: '#js_demo_stop'});
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@
|
||||||
// text-align: center;
|
// text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
& > div {
|
& > main {
|
||||||
position: relative;
|
position: relative;
|
||||||
padding: 64px 64px 24px 64px;
|
padding: 64px 64px 24px 64px;
|
||||||
border: 1px solid #FFF;
|
border: 1px solid #FFF;
|
||||||
|
|
|
||||||
|
|
@ -10,12 +10,14 @@
|
||||||
<link href="/css/ui.css" media="all" rel="stylesheet"/>
|
<link href="/css/ui.css" media="all" rel="stylesheet"/>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block script %}
|
{% block assets %}
|
||||||
<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="/js/globals.js"></script>
|
<script src="/js/globals.js"></script>
|
||||||
<script src="/js/app.js"></script>
|
<script src="/js/app.js"></script>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block script %}
|
||||||
<script>
|
<script>
|
||||||
const frameHeader = document.querySelector('body > header.io');
|
const frameHeader = document.querySelector('body > header.io');
|
||||||
const closeActionElements = document.querySelectorAll('[data-action=close]');
|
const closeActionElements = document.querySelectorAll('[data-action=close]');
|
||||||
|
|
@ -36,4 +38,4 @@
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,7 @@
|
||||||
|
|
||||||
<body{{ bodyClassAttr }}>
|
<body{{ bodyClassAttr }}>
|
||||||
{%- block body %}{% endblock -%}
|
{%- block body %}{% endblock -%}
|
||||||
|
{%- block assets %}{% endblock -%}
|
||||||
<script>
|
<script>
|
||||||
// {{ title }} script using default template
|
// {{ title }} script using default template
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -36,12 +36,13 @@
|
||||||
{% render 'hippie/partials/log-log' with 'BODY start' as msg -%}
|
{% render 'hippie/partials/log-log' with 'BODY start' as msg -%}
|
||||||
{%- block body %}{% endblock -%}
|
{%- block body %}{% endblock -%}
|
||||||
{% render 'hippie/partials/log-log' with 'BODY :: Loading script assets...' as msg -%}
|
{% render 'hippie/partials/log-log' with 'BODY :: Loading script assets...' as msg -%}
|
||||||
|
{%- block assets %}{% endblock -%}
|
||||||
|
{% render 'hippie/partials/log-assets', state: true -%}
|
||||||
|
{% render 'hippie/partials/log-log', msg: 'BODY :: Assets loaded, running page specific script...', arg: true -%}
|
||||||
<script>
|
<script>
|
||||||
// {{ title }} script using full template
|
// {{ title }} script using full template
|
||||||
</script>
|
</script>
|
||||||
{%- block script %}{% endblock -%}
|
{%- block script %}{% endblock -%}
|
||||||
{% render 'hippie/partials/log-assets', state: true -%}
|
|
||||||
{% render 'hippie/partials/log-log', msg: 'BODY :: Assets loaded, running page specific script...', arg: true -%}
|
|
||||||
{% render 'hippie/partials/log-log' with 'BODY end :: Page script might still be loading.' as msg -%}
|
{% render 'hippie/partials/log-log' with 'BODY end :: Page script might still be loading.' as msg -%}
|
||||||
{% render 'hippie/partials/log-log' with 'Application ready... or is it?' as msg -%}
|
{% render 'hippie/partials/log-log' with 'Application ready... or is it?' as msg -%}
|
||||||
</body>
|
</body>
|
||||||
|
|
|
||||||
|
|
@ -34,11 +34,13 @@
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block script %}
|
{% block assets %}
|
||||||
<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="/js/globals.js"></script>
|
<script src="/js/globals.js"></script>
|
||||||
<script src="/js/app.js"></script>
|
<script src="/js/app.js"></script>
|
||||||
|
{% endblock %}
|
||||||
|
{% block script %}
|
||||||
<script>
|
<script>
|
||||||
// Setup global things for all screens
|
// Setup global things for all screens
|
||||||
setup();
|
setup();
|
||||||
|
|
@ -59,4 +61,4 @@
|
||||||
logPerf('EVENT :: jQuery \'ready\' event fired.');
|
logPerf('EVENT :: jQuery \'ready\' event fired.');
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
<g>
|
<g>
|
||||||
<use xlink:href="#triangle-5" style="filter: url(#turb3);" />
|
<use xlink:href="#triangle-5" style="filter: url(#turb3);" />
|
||||||
</g>{% endcomment %}
|
</g>{% endcomment %}
|
||||||
{% if desc != '' %}
|
{% if desc %}
|
||||||
<desc>{{ desc }}</desc>
|
<desc>{{ desc }}</desc>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<rect id="triangle-5" y="0" fill="#273F8B" width="1920" height="1200"/>
|
<rect id="triangle-5" y="0" fill="#273F8B" width="1920" height="1200"/>
|
||||||
|
|
|
||||||
10
source/templates/hippie/partials/song.liquid
Normal file
10
source/templates/hippie/partials/song.liquid
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
<article class="songbook_song">
|
||||||
|
<header>
|
||||||
|
<h2>{{ data.title }}</h2>
|
||||||
|
<h6>{{ data.releaseDate }}</h6>
|
||||||
|
<p>{{ data.description }}</p>
|
||||||
|
</header>
|
||||||
|
{% comment %}<pre class="pre_code"><code>{{ content }}</code></pre>{% endcomment %}
|
||||||
|
{{ content }}
|
||||||
|
<footer>{{ index }}</footer>
|
||||||
|
</article>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue