make the page title a clickable link
This commit is contained in:
parent
1d2ce8d701
commit
c89f32eeab
|
@ -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 */
|
||||||
|
|
|
@ -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>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue