Skip to content

Commit

Permalink
Update default.html
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelspellacy committed Mar 29, 2024
1 parent 383914e commit dfd46d6
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions _layouts/default.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
{% assign id = page.id %}
{% assign module = page.module %}
{% assign component = site.data.module[module][id] %}

<!DOCTYPE html>
<html lang="{{ site.lang }}" class="no-js">
<head>
Expand All @@ -9,14 +13,15 @@
<link href="{{ site.git-url }}/component-library/in-page/init.css" rel="stylesheet">{% endif %}{% if page.read-more %}
<link href="{{ site.git-url }}/component-library/read-more/init.css" rel="stylesheet">{% endif %}{% if page.tabcordion %}
<link href="{{ site.git-url }}/component-library/tabcordion/init.css" rel="stylesheet">{% endif %}{% if page.tablist %}
<link href="{{ site.git-url }}/component-library/tablist/init.css" rel="stylesheet">{% endif %}
<link href="{{ site.git-url }}/component-library/tablist/init.css" rel="stylesheet">{% endif %}{% if page.card %}
<link href="{{ site.git-url }}/component-library/card/init.css" rel="stylesheet">{% endif %}
<link href="{{ site.git-url }}/css/init.css" rel="stylesheet">{% if page.librarycss %}
<link href="{{ page.librarycss}}" rel="stylesheet">{% endif %}{% if page.localcss %}
<link href="{{ page.localcss }}" rel="stylesheet">{% endif %}{% if page.components %}{% for component in page.components %}{% if component.customcss %}
<link href="{{ component.customcss }}.css" rel="stylesheet">{% endif %}{% endfor %}{% endif %}
<link href="{{ site.git-url }}/favicon.ico" rel="icon">
<link href="{{ site.git-url }}/manifest.json" rel="manifest">
<title>{{ page.title }} - {{ site.company-name }}</title>
<title>{% if component %}{{ component.title }}{% else %}{{ page.title }}{% endif %} - {{ site.company-name }}</title>
</head>

<body id="rad-{{ page.path | replace:'.html',''| replace:'.md','' | replace:'_','' | replace: '/', '-'}}"{% if page.section %} class="{{ page.section }}"{% endif %}>
Expand Down Expand Up @@ -49,11 +54,19 @@

<main{% if page.constrain != false %} id="content"{% endif %}>

{% if page.title %}
{% if component %}

<h1 class="primary-heading">{{ component.title }} v{{ component.version }}</h1>

{% else if page.title %}

{% if page.heading != false %}
{% if page.heading != false %}

<h1 class="primary-heading">{{ page.title }}</h1>

<h1 class="primary-heading">{{ page.title }}</h1>
{% endif %}

{% endif %}

{% if page.layout == "micropubpost" %}

Expand Down Expand Up @@ -84,10 +97,6 @@ <h1 class="primary-heading">{{ page.title }}</h1>

{% endif %}

{% endif %}

{% endif %}

{% if page.toc %}

<details class="nav">
Expand Down

0 comments on commit dfd46d6

Please sign in to comment.