make the page title a clickable link

This commit is contained in:
liquidex 2024-03-03 21:43:01 +01:00
parent 1d2ce8d701
commit c89f32eeab
2 changed files with 16 additions and 1 deletions

View file

@ -444,6 +444,21 @@ h1.page-title {
margin-bottom: 0; margin-bottom: 0;
margin-left: 32px; margin-left: 32px;
font-size: 1.25rem; font-size: 1.25rem;
& a {
color: var(--text-color);
text-decoration: none;
&:hover {
text-decoration: underline;
}
}
}
@media (hover: none) {
h1.page-title a {
text-decoration: underline;
}
} }
/* Style the `new` link on the homepage */ /* Style the `new` link on the homepage */

View file

@ -15,7 +15,7 @@
{{/if}} {{/if}}
{{#if (and (ne page.title config.user.title) (ne page.title page.tree_path))}} {{#if (and (ne page.title config.user.title) (ne page.title page.tree_path))}}
<h1 class="page-title">{{ page.title }}</h1> <h1 class="page-title"><a href="{{ config.site }}/{{ page.tree_path }}">{{ page.title }}</a></h1>
{{/if}} {{/if}}
</div> </div>