Skip to content

Commit

Permalink
Refactor header component
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobertlloyd committed Dec 1, 2023
1 parent 23ac968 commit 69c05ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion public/assets/styles/components/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
margin-block-end: var(--space-s);
}

& h1 {
& h1,
& h2 {
--color-link: var(--color-neutral-darkest);
--link-decoration: none;

Expand Down
4 changes: 2 additions & 2 deletions site/snippets/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<?php if (isset($parent)): ?>
<nav><?= $parent ?></nav>
<?php endif; ?>
<h1>
<h<?= $level ?? 1 ?>>
<?= isset($pretitle) ? Html::tag("span", $pretitle) : "" ?>
<?= isset($title) ? kti($title) : kti($page->title()) ?>
</h1>
</h<?= $level ?? 1 ?>>
<?php if (isset($subtitle)): ?>
<p><?= $subtitle ?></p>
<?php endif; ?>
Expand Down

0 comments on commit 69c05ab

Please sign in to comment.