From fdef67388674314f18d3390553fe9ffa3fc01d65 Mon Sep 17 00:00:00 2001 From: sthag Date: Tue, 10 Mar 2026 19:40:03 +0100 Subject: [PATCH 1/6] feat: Update card and placeholder - Change card from njk to liquid - Fix flag placeholder - Update structure of card --- .eleventy.js | 3 +- source/screens/demo/examples/card.liquid | 69 +++++++++++++++ source/screens/demo/examples/card.njk | 83 ------------------- source/style/modules/card/_card_module.scss | 2 +- .../hippie/partials/placeholder-flag.liquid | 2 +- 5 files changed, 73 insertions(+), 86 deletions(-) create mode 100644 source/screens/demo/examples/card.liquid delete mode 100644 source/screens/demo/examples/card.njk diff --git a/.eleventy.js b/.eleventy.js index 673656e..152f256 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -35,7 +35,8 @@ export default async function (eleventyConfig) { name: 'Vorname Nachname', address: 'Straße Nr., PLZ Ort', phone: '+49 (0)101 1337 48', - mail: 'name@domain.tld' + mail: 'name@domain.tld', + domain: 'https://domain.tld' }, debugMode: true, legacyMode: false diff --git a/source/screens/demo/examples/card.liquid b/source/screens/demo/examples/card.liquid new file mode 100644 index 0000000..dbe560b --- /dev/null +++ b/source/screens/demo/examples/card.liquid @@ -0,0 +1,69 @@ +--- +title: Card +tags: +- demoExample +--- +{% assign pageClass = "html_card" %} +{% layout 'hippie/simple.liquid' %} + +{% block body %} +
+
+ {% render 'hippie/partials/placeholder-flag.liquid', type: '', id: 'flag' %} + {% comment %}Background flag dithered{% endcomment %} +
+
+
+

Titel
und Beschreibung

+

{% text hippie.placeholders.name %}

+

+ {% link hippie.placeholders.mail, '', '', 'card_address' %}
+ {% link hippie.placeholders.domain, 'site.tld', '', 'decent' %} + · + {% text hippie.placeholders.address, '', 'decent' %}

+
+
+{% endblock %} + +{% block script %} + +{% endblock %} \ No newline at end of file diff --git a/source/screens/demo/examples/card.njk b/source/screens/demo/examples/card.njk deleted file mode 100644 index e05818d..0000000 --- a/source/screens/demo/examples/card.njk +++ /dev/null @@ -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 %} - - -
-
- {{ ph.flag('svg', '', 'flag', '') }} - {# Background flag dithered #} -
-
-
-

Titel
und Beschreibung

-

{{ ph.name() }}

-

- {{ ph.email('card_address') }}
- {{ ph.link('decent', 'site.tld') }} - · - {{ ph.address('decent') }}

-
-
-{% endblock %} - -{% block script %} - -{% endblock %} \ No newline at end of file diff --git a/source/style/modules/card/_card_module.scss b/source/style/modules/card/_card_module.scss index 5244c7f..86ab09c 100644 --- a/source/style/modules/card/_card_module.scss +++ b/source/style/modules/card/_card_module.scss @@ -32,7 +32,7 @@ // text-align: center; } - & > div { + & > main { position: relative; padding: 64px 64px 24px 64px; border: 1px solid #FFF; diff --git a/source/templates/hippie/partials/placeholder-flag.liquid b/source/templates/hippie/partials/placeholder-flag.liquid index 280a48c..6b6b048 100644 --- a/source/templates/hippie/partials/placeholder-flag.liquid +++ b/source/templates/hippie/partials/placeholder-flag.liquid @@ -14,7 +14,7 @@ {% endcomment %} - {% if desc != '' %} + {% if desc %} {{ desc }} {% endif %} From 6a717b7ab8d2cf1f9871b3da7a59d43087007bc1 Mon Sep 17 00:00:00 2001 From: sthag Date: Tue, 10 Mar 2026 20:36:54 +0100 Subject: [PATCH 2/6] feat: Update basic screens - Add order to front matter - Separate script and assets block - Sort index lists --- source/screens/demo/basics.liquid | 1 + source/screens/demo/components.liquid | 3 ++- source/screens/demo/index.liquid | 9 ++++----- source/screens/demo/introduction.liquid | 7 +------ source/screens/demo/layouts.liquid | 10 +++++----- source/templates/hippie/full.liquid | 5 +++-- source/templates/hippie/page.liquid | 6 ++++-- 7 files changed, 20 insertions(+), 21 deletions(-) diff --git a/source/screens/demo/basics.liquid b/source/screens/demo/basics.liquid index a300a21..d3c7a08 100644 --- a/source/screens/demo/basics.liquid +++ b/source/screens/demo/basics.liquid @@ -2,6 +2,7 @@ title: Basics tags: - demoIndex +order: 2 --- {% layout 'hippie/page.liquid' %} diff --git a/source/screens/demo/components.liquid b/source/screens/demo/components.liquid index 7070190..ca72d3f 100644 --- a/source/screens/demo/components.liquid +++ b/source/screens/demo/components.liquid @@ -2,6 +2,7 @@ title: Components tags: - demoIndex +order: 3 --- {% layout 'hippie/page.liquid' %} @@ -306,7 +307,7 @@ tags:
- + CapsLock is on. diff --git a/source/screens/demo/index.liquid b/source/screens/demo/index.liquid index bd3e609..684b6b3 100644 --- a/source/screens/demo/index.liquid +++ b/source/screens/demo/index.liquid @@ -1,8 +1,6 @@ --- permalink: "/" title: Index -tags: -- demoIndex --- {% assign pageId = page.fileSlug -%} {% assign pageClass = 'h_full_view' -%} @@ -35,7 +33,8 @@ tags: