Skip to content

Commit

Permalink
BC: remove current page link from navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
joshbruce committed Feb 23, 2024
1 parent 7304f05 commit f74ff5f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion site-root/public/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ nav > ul {
list-style: none;
}

nav a {
nav a,
nav span {
display: inline-block;
padding: 1rem;
}
Expand Down
8 changes: 5 additions & 3 deletions site-root/public/foot.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@
<nav>
<ul>
<?php foreach ($navigation as $href => $linkText) {
$class = '';
if ($uri === $href) {
$class = ' class="current" ';
print('<li><span>' . $linkText . '</li>');

} else {
print('<li><a '. $class . 'href="' . $href . '">' . $linkText . '</a></li>');

}
print('<li><a '. $class . 'href="' . $href . '">' . $linkText . '</a></li>');
} ?>
</ul>
</nav>
Expand Down
2 changes: 1 addition & 1 deletion site-root/public/head.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@
<meta name="twitter:image" content="<?php print($poster); ?>">

<!-- Styles w/ query cache break -->
<link type="text/css" rel="stylesheet" href="/css/main.css?v=1.0.2">
<link type="text/css" rel="stylesheet" href="/css/main.css?v=1.0.3">
</head>
<body>

0 comments on commit f74ff5f

Please sign in to comment.