From 5e0c303094e4949932660d9f61a507c8c86ddc8b Mon Sep 17 00:00:00 2001 From: "Craig @craigerskine @qrayg" Date: Fri, 19 Jul 2024 12:39:07 -0500 Subject: [PATCH] cleanup, a11y --- _site/_includes/_logo.njk | 5 +--- _site/_includes/components/elements.njk | 21 --------------- _site/_includes/layouts/default.njk | 10 +++---- _site/_includes/macro.heading.njk | 9 +++++++ _site/_includes/macro.list.njk | 11 ++++++++ _site/index.md | 2 +- _site/products.md | 36 ++++++++++++++----------- _site/products/gadget.md | 1 + _site/products/hunkerdoo.md | 1 + _site/products/widget.md | 1 + 10 files changed, 50 insertions(+), 47 deletions(-) delete mode 100644 _site/_includes/components/elements.njk create mode 100644 _site/_includes/macro.heading.njk create mode 100644 _site/_includes/macro.list.njk diff --git a/_site/_includes/_logo.njk b/_site/_includes/_logo.njk index cd0c7f0..a908f7f 100644 --- a/_site/_includes/_logo.njk +++ b/_site/_includes/_logo.njk @@ -1,4 +1 @@ - - {{ site.meta.title }} - - \ No newline at end of file + \ No newline at end of file diff --git a/_site/_includes/components/elements.njk b/_site/_includes/components/elements.njk deleted file mode 100644 index 77335c0..0000000 --- a/_site/_includes/components/elements.njk +++ /dev/null @@ -1,21 +0,0 @@ -{% macro heading(tag='h1',divider=false) %} -<{{ tag }} class="pb-12 w-full text-2xl leading-tight font-black flex items-center space-x-4 lg:(text-[calc(3vw)])"> - {%- if divider %}{%- endif %} - - {{ caller() }} - - {%- if divider %}{%- endif %} - -{% endmacro %} - -{% macro list() %} - -{% endmacro %} - -{% macro listItem() %} -
  • - {{ caller() }} -
  • -{% endmacro %} \ No newline at end of file diff --git a/_site/_includes/layouts/default.njk b/_site/_includes/layouts/default.njk index 30f87bd..9fac47f 100644 --- a/_site/_includes/layouts/default.njk +++ b/_site/_includes/layouts/default.njk @@ -1,4 +1,4 @@ -{%- import 'components/elements.njk' as el -%} +{%- from 'macro.heading.njk' import heading -%} {%- set page_title -%}{{ title +' :: '+ site.meta.title if title else site.meta.title }}{%- endset -%} @@ -41,9 +41,9 @@
    -