Add custom buttons to hero

This commit is contained in:
Jake Howard 2022-08-17 13:40:07 +01:00
parent 0fa1d1c8be
commit f554c9fb48
Signed by: jake
GPG key ID: 57AFB45680EDD477
3 changed files with 28 additions and 21 deletions

View file

@ -32,7 +32,7 @@ a {
transition: color 0.25s, background-color 0.25s;
@include dark-mode {
&:hover {
&:not(.button):hover {
color: $grey-lighter;
}
}

View file

@ -6,6 +6,11 @@
<link rel="alternate" type="application/rss+xml" href="{% routablepageurl page 'feed' %}">
{% endblock %}
{% block hero_buttons %}
<a class="button is-radiusless" href="{% routablepageurl page 'feed' %}" title="View feed"><i class="fas fa-rss" aria-hidden="true"></i></a>
{{ block.super }}
{% endblock %}
{% block post_content %}
<section class="container">
{% for page in child_pages %}

View file

@ -23,6 +23,7 @@
{% include "common/content-details.html" %}
</div>
<div class="column is-narrow dropdown-wrapper is-hidden-touch is-grouped">
{% block hero_buttons %}
{% if page.table_of_contents %}
<div class="dropdown is-hoverable is-right" id="table-of-contents">
<div class="dropdown-trigger">
@ -46,6 +47,7 @@
{% endif %}
<button class="button is-radiusless scroll-top">Top <i class="fas fa-angle-up ml-2" aria-hidden="true"></i></button>
{% endblock %}
</div>
</div>
</div>