moar fancy links and feature cards
This commit is contained in:
parent
289d3cb824
commit
5469cfb74d
|
@ -2,7 +2,7 @@
|
||||||
{% get_current_language as LANGUAGE_CODE %}
|
{% get_current_language as LANGUAGE_CODE %}
|
||||||
<div class="container-lg mt-5">
|
<div class="container-lg mt-5">
|
||||||
<h4 class="">{% trans "Featured" %}</h4>
|
<h4 class="">{% trans "Featured" %}</h4>
|
||||||
<div class="row row-cols-1 row-cols-md-6 my-4">
|
<div class="row row-cols-1 row-cols-md-5 my-4">
|
||||||
{% for post in featured_posts %}
|
{% for post in featured_posts %}
|
||||||
<div class="card col m-2 p-0">
|
<div class="card col m-2 p-0">
|
||||||
<a class="text-reset link-offset-2 link-underline link-underline-opacity-0" href=" {% url 'blog:post' post.category.slug post.slug %}">
|
<a class="text-reset link-offset-2 link-underline link-underline-opacity-0" href=" {% url 'blog:post' post.category.slug post.slug %}">
|
||||||
|
|
|
@ -37,10 +37,6 @@
|
||||||
{% endblocktranslate %}
|
{% endblocktranslate %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="container text-center">
|
|
||||||
test
|
|
||||||
<a href="{% url 'blog:post' "test" "test" %}">sus</a>
|
|
||||||
</div>
|
|
||||||
<div class="container text-center jumbotron my-3">
|
<div class="container text-center jumbotron my-3">
|
||||||
<h1 class="my-4">{% translate "Looking for anything specific?" %}</h1>
|
<h1 class="my-4">{% translate "Looking for anything specific?" %}</h1>
|
||||||
{% include 'main_search_form.html' %}
|
{% include 'main_search_form.html' %}
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 23 KiB |
Binary file not shown.
After Width: | Height: | Size: 6.7 KiB |
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
|
@ -11,17 +11,17 @@
|
||||||
<div class="card col m-2 p-0">
|
<div class="card col m-2 p-0">
|
||||||
<a class="text-reset link-offset-2 link-underline link-underline-opacity-0" href="{{ link.url }}">
|
<a class="text-reset link-offset-2 link-underline link-underline-opacity-0" href="{{ link.url }}">
|
||||||
<div class="card-body" style="height: 150px;">
|
<div class="card-body" style="height: 150px;">
|
||||||
|
<img src="{{ link.favicon.url }}" class="card-img-top rounded float-end" style="max-height: 32px; max-width: 32px;" alt="">
|
||||||
{% if LANGUAGE_CODE == "de" %}
|
{% if LANGUAGE_CODE == "de" %}
|
||||||
<h5 class="card-title">{{ link.title_de }}<small class="text-body-secondary">{{ link.subtitle }}</small></h5>
|
<h5 class="card-title" style="height: 35px;">{{ link.title_de }}<small class="text-body-secondary">{{ link.subtitle }}</small></h5>
|
||||||
<img src="{{ link.favicon.url }}" class="card-img-top img-fluid" style="max-height: 64px;" alt="">
|
|
||||||
<hr>
|
<hr>
|
||||||
<p class="card-text">{{ link.desc_de }}</p>
|
<p class="card-text">{{ link.desc_de }}</p>
|
||||||
{% elif LANGUAGE_CODE == "en" %}
|
{% elif LANGUAGE_CODE == "en" %}
|
||||||
<h5 class="card-title">{{ link.title_en }}<small class="text-body-secondary">{{ link.subtitle }}</small></h5>
|
<h5 class="card-title" style="height: 35px;">{{ link.title_en }}<small class="text-body-secondary">{{ link.subtitle }}</small></h5>
|
||||||
<hr>
|
<hr>
|
||||||
<p class="card-text">{{ link.desc_en }}</p>
|
<p class="card-text">{{ link.desc_en }}</p>
|
||||||
{% else %}
|
{% else %}
|
||||||
<h5 class="card-title">{{ link.title_en }}<small class="text-body-secondary">{{ link.subtitle }}</small></h5>
|
<h5 class="card-title" style="height: 35px;">{{ link.title_en }}<small class="text-body-secondary">{{ link.subtitle }}</small></h5>
|
||||||
<hr>
|
<hr>
|
||||||
<p class="card-text">{{ link.desc_en }}</p>
|
<p class="card-text">{{ link.desc_en }}</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in New Issue