Color links in green

This commit is contained in:
Joachim 2021-12-22 14:53:34 +01:00
parent 6308625bab
commit 13d668e49e
2 changed files with 9 additions and 9 deletions

View file

@ -67,13 +67,13 @@
<div class="column is-3"> <div class="column is-3">
{% trans "Your shortest read this year" %} {% trans "Your shortest read this year" %}
<p class="title is-4 is-serif is-italic"> <p class="title is-4 is-serif is-italic">
<a href="{{ book_pages_lowest.local_path }}" class="has-text-link-dark"> <a href="{{ book_pages_lowest.local_path }}" class="has-text-success-dark">
{{ book_pages_lowest.title }} {{ book_pages_lowest.title }}
</a> </a>
</p> </p>
{% if book_pages_lowest.authors.exists %} {% if book_pages_lowest.authors.exists %}
<p class="subtitle is-5 mb-2">{% trans "by" %} <p class="subtitle is-5 mb-2">{% trans "by" %}
{% include 'snippets/authors.html' with book=book_pages_lowest %} {% include 'snippets/authors.html' with book=book_pages_lowest link_class="has-text-success-dark" %}
</p> </p>
{% endif %} {% endif %}
<p class="subtitle is-6"> <p class="subtitle is-6">
@ -88,13 +88,13 @@
<div class="column is-3"> <div class="column is-3">
{% trans "and the longest read" %} {% trans "and the longest read" %}
<p class="title is-4 is-serif is-italic"> <p class="title is-4 is-serif is-italic">
<a href="{{ book_pages_lowest.local_path }}" class="has-text-link-dark"> <a href="{{ book_pages_lowest.local_path }}" class="has-text-success-dark">
{{ book_pages_highest.title }} {{ book_pages_highest.title }}
</a> </a>
</p> </p>
{% if book_pages_highest.authors.exists %} {% if book_pages_highest.authors.exists %}
<p class="subtitle is-5 mb-2">{% trans "by" %} <p class="subtitle is-5 mb-2">{% trans "by" %}
{% include 'snippets/authors.html' with book=book_pages_highest %} {% include 'snippets/authors.html' with book=book_pages_highest link_class="has-text-success-dark" %}
</p> </p>
{% endif %} {% endif %}
<p class="subtitle is-6"> <p class="subtitle is-6">
@ -126,13 +126,13 @@
<div class="column is-4"> <div class="column is-4">
{% trans "Your best rated review" %} {% trans "Your best rated review" %}
<p class="title is-4 is-serif is-italic"> <p class="title is-4 is-serif is-italic">
<a href="{{ book_rating_highest.book.local_path }}" class="has-text-link-dark"> <a href="{{ book_rating_highest.book.local_path }}" class="has-text-success-dark">
{{ book_rating_highest.book.title }} {{ book_rating_highest.book.title }}
</a> </a>
</p> </p>
{% if book_rating_highest.book.authors.exists %} {% if book_rating_highest.book.authors.exists %}
<p class="subtitle is-5 mb-2">{% trans "by" %} <p class="subtitle is-5 mb-2">{% trans "by" %}
{% include 'snippets/authors.html' with book=book_rating_highest.book %} {% include 'snippets/authors.html' with book=book_rating_highest.book link_class="has-text-success-dark" %}
</p> </p>
{% endif %} {% endif %}
<p class="subtitle is-6"> <p class="subtitle is-6">
@ -162,14 +162,14 @@
<div class="books-grid"> <div class="books-grid">
{% for book in books %} {% for book in books %}
{% if book.id in best_ratings_books_ids %} {% if book.id in best_ratings_books_ids %}
<a href="{{ book.local_path }}" class="has-text-centered is-big"> <a href="{{ book.local_path }}" class="has-text-centered is-big has-text-success-dark">
{% include 'snippets/book_cover.html' with book=book cover_class='is-w-auto' %} {% include 'snippets/book_cover.html' with book=book cover_class='is-w-auto' %}
<span class="book-title is-serif is-size-5"> <span class="book-title is-serif is-size-5">
{{ book.title }} {{ book.title }}
</span> </span>
</a> </a>
{% else %} {% else %}
<a href="{{ book.local_path }}" class="has-text-centered"> <a href="{{ book.local_path }}" class="has-text-centered has-text-success-dark">
{% include 'snippets/book_cover.html' with book=book cover_class='is-w-auto' %} {% include 'snippets/book_cover.html' with book=book cover_class='is-w-auto' %}
<span class="book-title is-serif is-size-6"> <span class="book-title is-serif is-size-6">
{{ book.title }} {{ book.title }}

View file

@ -13,7 +13,7 @@
{% for author in book.authors.all|slice:limit %} {% for author in book.authors.all|slice:limit %}
<a <a
href="{{ author.local_path }}" href="{{ author.local_path }}"
class="author" class="author {{ link_class }}"
itemprop="author" itemprop="author"
itemscope itemscope
itemtype="https://schema.org/Thing" itemtype="https://schema.org/Thing"