From 6544b5042a2f842dfef33ee74b9d64f05b2ff3f9 Mon Sep 17 00:00:00 2001 From: "Michael Spellacy (Spell)" Date: Tue, 31 Dec 2024 11:10:00 -0500 Subject: [PATCH] Update default.html --- _layouts/default.html | 253 +++++++++++++++++++++++++++++++++--------- 1 file changed, 199 insertions(+), 54 deletions(-) diff --git a/_layouts/default.html b/_layouts/default.html index fdf673f..d517fe0 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -1,4 +1,4 @@ -{% if site.name == "Component Library" %} +{%- if site.repo == "https://github.com/radancyco/component-library" -%} {% assign current_id = page.id %} {% assign module = page.module %} @@ -8,29 +8,104 @@ {% assign selectedFeeds = site.data.module.feeds %} {% assign allSelections = selectedComponents | concat: selectedFeeds %} -{% endif %} +{%- endif -%} + + - {% if page.slick %} - {% endif %}{% if page.accordion %} - {% endif %}{% if page.select-internal %} - {% endif %}{% if page.read-more %} - {% endif %}{% if page.tabcordion %} - {% endif %}{% if page.tablist %} - {% endif %}{% if page.card %} - {% endif %} - {% if page.librarycss %} - {% endif %}{% if page.localcss %} - {% endif %}{% for component in allSelections %}{% if component.id == current_id %}{% for example in component.examples %}{% if example.customcss %} - {% endif %}{% endfor %}{% endif %}{% endfor %} + + + + {%- if page.slick %} + + + + {%- endif %} + + {%- if page.accordion %} + + + + {%- endif %} + + {%- if page.select-internal %} + + + + {%- endif %} + + {%- if page.read-more %} + + + + {%- endif %} + + {%- if page.tablist %} + + + + {%- endif %} + + {%- if page.card %} + + + + {%- endif %} + + + + {%- if page.librarycss %} + + + + {%- endif %} + + {%- if page.localcss %} + + + + {%- endif %} + + {%- for component in allSelections %} + + {%- if component.id == current_id -%} + + {%- for example in component.examples -%} + + {%- if example.customcss -%} + + + + {%- endif -%} + + {%- endfor -%} + + {%- endif -%} + + {%- endfor %} + + - {% if component %}{{ component.title }} v{{ component.version }}{% else %}{{ page.title }}{% endif %} - {{ site.company-name }} + + + + {%- if component -%} + + {{ component.title }} v{{ component.version }} + + {% else %} + + {{ page.title }} + + {%- endif %} - {{ site.company-name }} + + @@ -43,9 +118,9 @@ - {% if site.navigation %} + {%- if site.navigation %} - {% if page.navigation != false %} + {%- if page.navigation != false %} - {% endif %} + {%- endif %} - {% endif %} + {%- endif %} - +
- {% if component %} - -

{{ component.title }} v{{ component.version }}

- - {% else if page.title %} + {%- if component %} - {% if page.heading != false %} - -

{{ page.title }}

+

{{ component.title }} v{{ component.version }}

- {% endif %} - - {% endif %} + {%- else if page.title %} + + {%- if page.heading != false %} + +

{{ page.title }}

- {% if page.layout == "micropubpost" %} + {%- endif %} + + {%- endif %} + + {%- if page.layout == "micropubpost" %}
Headshot of {{ page.author }} - +
    +
  • Posted by: {{ page.author }}{% if page.role %}, {{ page.role }}{% endif %}
  • - {% if page.pronouns %} + + {%- if page.pronouns %} +
  • Pronouns: {{ page.pronouns }}
  • - {% endif %} + + {%- endif %} +
  • Posted: {{ page.date | date: "%A, %B %e, %Y" }}
  • - {% if page.update %} + + {%- if page.update %} +
  • Update: {{ page.update | date: "%A, %B %e, %Y" }}
  • - {% endif %} + + {%- endif %} +
- {% endif %} + {%- endif %} - {% if page.toc %} + {%- if page.toc %} - {% endif %} + {%- endif %} {{ content }}
- +

© {{ "now" | date: "%Y" }} {{ site.company-name }}. An equal opportunity employer. Contributions to this project are welcome.

- {% if page.jquery == true %} - {% endif %}{% if page.slick %} - {% endif %}{% if page.accordion %} - {% endif %}{% if page.disclosure %} - {% endif %}{% if page.select-internal %} - {% endif %}{% if page.read-more %} - {% endif %}{% if page.tabcordion %} - {% endif %}{% if page.tablist %} - {% endif %} - {% if page.libraryjs %} - {% endif %}{% if page.localjs %} - {% endif %}{% for component in allSelections %}{% if component.id == current_id %}{% for example in component.examples %}{% if example.customjs %} - {% endif %}{% endfor %}{% endif %}{% endfor %} + + {%- if page.jquery == true %} + + + + {%- endif %} + + {%- if page.slick %} + + + + {%- endif %} + + {%- if page.accordion %} + + + + {%- endif %} + + {%- if page.disclosure %} + + + + {%- endif %} + + {%- if page.select-internal %} + + + + {%- endif %} + + {%- if page.read-more %} + + + + {%- endif %} + + {%- if page.tablist %} + + + + {%- endif %} + + + + {%- if page.libraryjs %} + + + + {%- endif %} + + {%- if page.localjs %} + + + + {%- endif %} + + {%- for component in allSelections %} + + {% if component.id == current_id %} + + {% for example in component.examples %} + + {% if example.customjs %} + + + + {% endif %} + + {% endfor %} + + {% endif %} + + {%- endfor %}