feat: Update basic screens
- Add order to front matter - Separate script and assets block - Sort index lists
This commit is contained in:
parent
fdef673886
commit
6a717b7ab8
7 changed files with 20 additions and 21 deletions
|
|
@ -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>
|
||||||
|
|
|
||||||
|
|
@ -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'});
|
||||||
|
|
|
||||||
|
|
@ -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();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue