Skip to content

Commit

Permalink
address lightbox seo problems
Browse files Browse the repository at this point in the history
  • Loading branch information
Boldewyn committed Feb 25, 2024
1 parent 6ca82ca commit ab13b89
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
4 changes: 2 additions & 2 deletions codepoints.net/views/partials/main-navigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
https://www.stevefenton.co.uk/blog/2022/12/mobile-position-sticky-issue/ */ ?>
<div style="position: fixed;"></div>
<cp-navigation>
<a href="<?=q(url(''))?>" rel="start" aria-label="<?=q('go to the homepage')?>">
<a href="<?=q(url(''))?>" rel="start">
<svg width="64" height="64"><use href="/static/images/icon.svg#icon"/></svg>
<span class="title"><?=_q('Home')?></span>
<span class="title"><?=_q('Home')?><span class="visually-hidden">: <?=q('go to the homepage')?></span></span>
</a>
<?php
if (! isset($nav) || ! $nav) {
Expand Down
16 changes: 16 additions & 0 deletions src/css/_codepoints.css
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,13 @@ p .pl .meta {
display: none;
}

.cpdesc--othersites {
a {
display: block;
padding: .4em .1em;
}
}

.props {
margin-left: auto;
margin-right: auto;
Expand All @@ -125,3 +132,12 @@ p .pl .meta {
.props .n {
color: var(--color-danger);
}

.props a {
display: block;
}

.props td > a {
margin: -0.2em -0.5em;
padding: 0.2em 0.5em;
}

0 comments on commit ab13b89

Please sign in to comment.