diff --git a/.eleventy.js b/.eleventy.js index ccca65a..ce05d34 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -9,11 +9,9 @@ module.exports = function (eleventyConfig) { }); eleventyConfig.addGlobalData("hippie", { - pageBase: './', brand: 'hippie', - titlePrefix: '', - titlePostfix: ' - HIPPIE', - debugMode: true + titlePrefix: ' - HIPPIE', + pageBase: './' }); eleventyConfig.addPassthroughCopy({"source/art/images": "art"}); @@ -37,6 +35,6 @@ module.exports = function (eleventyConfig) { }, markdownTemplateEngine: "njk", htmlTemplateEngine: "njk", - templateFormats: ["html", "njk", "md"] + templateFormats: ["html", "njk"] } }; diff --git a/gulp/config.js b/gulp/config.js index 7a03f07..257f453 100644 --- a/gulp/config.js +++ b/gulp/config.js @@ -17,7 +17,7 @@ const config = { hippie: { brand: 'hippie', - titlePostfix: ' - HIPPIE', + titlePrefix: ' - HIPPIE', pageBase: './' } }; diff --git a/source/screens/basics.njk b/source/screens/basics.njk index f31fedb..21f455f 100644 --- a/source/screens/basics.njk +++ b/source/screens/basics.njk @@ -1,8 +1,8 @@ - + {% set pageBase = "../" %} {% set pageId = "basics" %} -{% extends "demo/_docs.njk" %} +{% extends "demo/_extended.njk" %} {% block title %}Grundlagen{% endblock %} {% block head %} @@ -959,11 +959,12 @@ + {% endblock %} \ No newline at end of file diff --git a/source/screens/components.njk b/source/screens/components.njk index 7b00a16..ec61f91 100644 --- a/source/screens/components.njk +++ b/source/screens/components.njk @@ -2,7 +2,7 @@ {% set pageBase = "../" %} {% set pageId = "components" %} -{% extends "demo/_docs.njk" %} +{% extends "demo/_extended.njk" %} {% block title %}Komponenten{% endblock %} {% block head %} @@ -39,7 +39,7 @@

Übersicht aller Elemente

Es werden alle grundlegenden Elemente sowie ihre gestalteten Varianten angegeben. Die Elemente sind in Gruppen eingeteilt, die auch das W3Consortium (www.w3.org/TR/2017/REC-html52-20171214/index.html#contents) verwendet.

-

Zu jedem Element werden alle Attribute aufgelistet und die Umsetzung im HTML-Dokument als Emmet-Syntax dargestellt.

+

Zu jedem Element werden alle Attribute aufgelistet und die Umsetzung im HTML Dokument als Emmet Syntax dargestellt.

Bereiche

@@ -69,8 +69,7 @@ - {{ log.asset(true) }} - {{ log.log('Assets loaded.', assetsLoaded) }} + + {% endblock %} \ No newline at end of file diff --git a/source/screens/introduction.njk b/source/screens/introduction.njk index aeea393..d35bec6 100644 --- a/source/screens/introduction.njk +++ b/source/screens/introduction.njk @@ -1,8 +1,8 @@ - + {% set pageBase = "../" %} {% set pageId = "intro" %} -{% extends "demo/_docs.njk" %} +{% extends "demo/_extended.njk" %} {% block title %}Einführung{% endblock %} {% block head %} @@ -23,6 +23,8 @@

+ + {% endblock %} {% block script %} @@ -32,11 +34,12 @@ + {% endblock %} \ No newline at end of file diff --git a/source/screens/layouts.njk b/source/screens/layouts.njk index 4bd7966..253f66e 100644 --- a/source/screens/layouts.njk +++ b/source/screens/layouts.njk @@ -2,7 +2,7 @@ {% set pageBase = "../" %} {% set pageId = "layouts" %} -{% extends "demo/_docs.njk" %} +{% extends "demo/_extended.njk" %} {% block title %}Gestaltungen{% endblock %} {% block head %} @@ -322,8 +322,7 @@ - {{ log.asset(true) }} - {{ log.log('Assets loaded.', assetsLoaded) }} + + + + {% include "demo/partials/_links.njk" %} + {% block links %} + {# #} + {# #} + + {% endblock %} + + {% endblock %} + + + + + {% block body %}{% endblock %} + + {% block script %} + + + {% endblock %} + + + \ No newline at end of file diff --git a/source/templates/demo/_demo.njk b/source/templates/demo/_demo.njk deleted file mode 100644 index afc2aae..0000000 --- a/source/templates/demo/_demo.njk +++ /dev/null @@ -1,18 +0,0 @@ - -{% extends "hippie/_default.njk" %} - -{% block meta %} - {% include "demo/partials/_meta.njk" %} - {# #} -{% endblock %} - -{% block links %} - {{ super() }} - {# #} - {# #} -{% endblock %} - -{% block script %} - {{ super() }} - -{% endblock %} \ No newline at end of file diff --git a/source/templates/demo/_docs.njk b/source/templates/demo/_docs.njk deleted file mode 100644 index 97f765d..0000000 --- a/source/templates/demo/_docs.njk +++ /dev/null @@ -1,23 +0,0 @@ - -{% extends "hippie/_main.njk" %} - -{% block meta %} - {% include "demo/partials/_meta.njk" %} - {# #} -{% endblock %} - -{% block links %} - {{ super() }} - - - - - - - -{% endblock %} - -{% block script %} - {{ super() }} - -{% endblock %} diff --git a/source/templates/demo/_extended.njk b/source/templates/demo/_extended.njk new file mode 100644 index 0000000..39fdcb4 --- /dev/null +++ b/source/templates/demo/_extended.njk @@ -0,0 +1,67 @@ + + + + + + + {% block head %} + + {% block title %}{% endblock %} + - HIPPIE + + {% include "demo/partials/_meta.njk" %} + {% block meta %}{% endblock %} + + {% include "hippie/partials/_head_script.njk" %} + + + {% include "demo/partials/_links.njk" %} + {% block links %} + + + + + + + + + {% endblock %} + + {% endblock %} + + + + + {% include "hippie/partials/_body_hover.njk" %} +
+ {% include "hippie/partials/_header.njk" %} + +
+ {% block main %}{% endblock %} +
+ + {% include "hippie/partials/_footer.njk" %} +
+ + {% block script %} + + + {# #} + {% endblock %} + + + \ No newline at end of file diff --git a/source/templates/hippie/_maintenance.njk b/source/templates/demo/_maintenance.njk similarity index 91% rename from source/templates/hippie/_maintenance.njk rename to source/templates/demo/_maintenance.njk index 0635f17..af00cb7 100644 --- a/source/templates/hippie/_maintenance.njk +++ b/source/templates/demo/_maintenance.njk @@ -6,9 +6,10 @@ {% block head %} - {% block title %}{% endblock %}{{ hippie.titlePostfix }} + {% block title %}{% endblock %} + - HIPPIE - {% include "hippie/partials/_head_meta.njk" %} + {% include "demo/partials/_meta.njk" %} {% block meta %}{% endblock %} {% block links %} diff --git a/source/templates/hippie/partials/_head_links.njk b/source/templates/demo/partials/_links.njk similarity index 98% rename from source/templates/hippie/partials/_head_links.njk rename to source/templates/demo/partials/_links.njk index b7afb2d..c95a39b 100644 --- a/source/templates/hippie/partials/_head_links.njk +++ b/source/templates/demo/partials/_links.njk @@ -1,4 +1,4 @@ - + {# #} diff --git a/source/templates/demo/partials/_meta.njk b/source/templates/demo/partials/_meta.njk index 1253aaa..dd00970 100644 --- a/source/templates/demo/partials/_meta.njk +++ b/source/templates/demo/partials/_meta.njk @@ -1,6 +1,6 @@ - + diff --git a/source/templates/hippie/_default.njk b/source/templates/hippie/_default.njk deleted file mode 100644 index bdaf5ed..0000000 --- a/source/templates/hippie/_default.njk +++ /dev/null @@ -1,41 +0,0 @@ - -{% import "hippie/macros/_log.njk" as log %} - - - - - - - {% block head %} - - {{ hippie.titlePrefix }} - {% block title %}{% endblock %}{{ hippie.titlePostfix }} - - {% block meta %} - {% include "hippie/partials/_head_meta.njk" %} - {% endblock %} - - {% include "hippie/partials/_head_script.njk" %} - {# {{ log.debug(true) }} #} - {{ log.start() }} - - {% block links %} - {% include "hippie/partials/_head_links.njk" %} - - {% endblock %} - - {{ log.log('HEAD end :: Links parsed, starting to load.') }} - {% endblock %} - - - - {{ log.log('BODY start') }} - {% block body %}{% endblock %} - - {% block script %} - {{ log.log('BODY :: Loading script assets...') }} - {% endblock %} - - {{ log.log('BODY end :: Page script might still be loading.') }} - - \ No newline at end of file diff --git a/source/templates/hippie/_main.njk b/source/templates/hippie/_main.njk deleted file mode 100644 index 20ccda5..0000000 --- a/source/templates/hippie/_main.njk +++ /dev/null @@ -1,50 +0,0 @@ - -{% import "hippie/macros/_log.njk" as log %} - - - - - - - {% block head %} - - {{ hippie.titlePrefix }} - {% block title %}{% endblock %}{{ hippie.titlePostfix }} - - {% block meta %} - {% include "hippie/partials/_head_meta.njk" %} - {% endblock %} - - {% include "hippie/partials/_head_script.njk" %} - {{ log.debug(hippie.debugMode, true) }} - {{ log.start() }} - - {% block links %} - {% include "hippie/partials/_head_links.njk" %} - - {% endblock %} - - {{ log.log('HEAD end :: Links parsed, starting to load.') }} - {% endblock %} - - - - {{ log.log('BODY start') }} - {% include "hippie/partials/_body_hover.njk" %} -
- {% include "hippie/partials/_header.njk" %} - -
- {% block main %}{% endblock %} -
- - {% include "hippie/partials/_footer.njk" %} -
- - {% block script %} - {{ log.log('BODY :: Loading script assets...') }} - {% endblock %} - - {{ log.log('BODY end :: Page script might still be loading.') }} - - \ No newline at end of file diff --git a/source/templates/hippie/macros/_log.njk b/source/templates/hippie/macros/_log.njk deleted file mode 100644 index 98ceaa3..0000000 --- a/source/templates/hippie/macros/_log.njk +++ /dev/null @@ -1,24 +0,0 @@ -{% macro start() %} - -{% endmacro %} -{% macro log(msg, arg = '') %} - -{% endmacro %} -{% macro debug(state = false, display = false, assets = false) %} - {# {{ set hippie.debugMode = state }} #} - -{% endmacro %} -{% macro asset(state = false) %} - -{% endmacro %} \ No newline at end of file diff --git a/source/templates/hippie/macros/_nav.njk b/source/templates/hippie/macros/_nav.njk index 4f04ad4..0178835 100644 --- a/source/templates/hippie/macros/_nav.njk +++ b/source/templates/hippie/macros/_nav.njk @@ -1,13 +1,10 @@ -{% macro main(data, active = '') %} - -{% endmacro %} \ No newline at end of file + +{% macro main(data, active='') %} + +{% endmacro %} diff --git a/source/templates/hippie/macros/_placeholder.njk b/source/templates/hippie/macros/_placeholder.njk deleted file mode 100644 index d82e4ff..0000000 --- a/source/templates/hippie/macros/_placeholder.njk +++ /dev/null @@ -1,13 +0,0 @@ -{% macro email(class='', text='name@domain.tld') %} -{{ text }} -{# {{ 'name@domain.tld' | urlize | safe }} #} -{% endmacro %} -{% macro link(class='', text='domain.tld', href='http://domain.internal') %} -{{ text }} -{% endmacro %} -{% macro name(class='', text='Prename Surname') %} -{{ text }} -{% endmacro %} -{% macro address(class='', text='Street No., Postcode City') %} -{{ text }} -{% endmacro %} diff --git a/source/templates/hippie/macros/footer-status.njk b/source/templates/hippie/macros/footer-status.njk index 6668607..3f2e790 100644 --- a/source/templates/hippie/macros/footer-status.njk +++ b/source/templates/hippie/macros/footer-status.njk @@ -1,17 +1,13 @@ -{% macro footer(email = 'admin@domain.tld', app = 'Application', version = 'ver.s.ion', system = 'System Name', domain = 'domain.tld:port', type) %} + +{% macro footer(email='admin@domain.tld', app='Application', version='ver.s.ion', system='System Name', domain='domain.tld:port', type) %} - {% if not type or type == 'status' %} - - {% else %} - - {% endif %} -{% endmacro %} \ No newline at end of file +{% if not type or type == 'status' %} + +{% else %} + +{% endif %} +{% endmacro %} diff --git a/source/templates/hippie/partials/_head_meta.njk b/source/templates/hippie/partials/_head_meta.njk deleted file mode 100644 index 38c3b82..0000000 --- a/source/templates/hippie/partials/_head_meta.njk +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/source/templates/hippie/partials/_head_script.njk b/source/templates/hippie/partials/_head_script.njk index ccb6ddc..e00bacc 100644 --- a/source/templates/hippie/partials/_head_script.njk +++ b/source/templates/hippie/partials/_head_script.njk @@ -1,8 +1,8 @@ \ No newline at end of file