-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #309 from danesjenovdan/v3-dev
Pulling refs/heads/v3-dev into v3-k8s
- Loading branch information
Showing
11 changed files
with
123 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from wagtail.images.formats import get_image_format, unregister_image_format | ||
|
||
unregister_image_format("left") | ||
unregister_image_format("right") | ||
|
||
get_image_format("fullwidth").filter_spec = "width-1600" |
20 changes: 20 additions & 0 deletions
20
djnd/home/migrations/0071_alter_navigationsettings_pages.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Generated by Django 4.2.10 on 2024-07-05 10:51 | ||
|
||
from django.db import migrations | ||
import wagtail.blocks | ||
import wagtail.fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('home', '0070_alter_homepage_focus_areas'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='navigationsettings', | ||
name='pages', | ||
field=wagtail.fields.StreamField([('page', wagtail.blocks.StructBlock([('page', wagtail.blocks.PageChooserBlock()), ('subpages', wagtail.blocks.ListBlock(wagtail.blocks.PageChooserBlock(), default=[]))]))], null=True, use_json_field=True, verbose_name='Strani'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{% load i18n static wagtailcore_tags wagtailimages_tags djnd_extras %} | ||
|
||
<div class="border border-dark flex flex-col relative"> | ||
<a href="{% if activity|is_page %}{% pageurl activity %}{% else %}{{ activity.link }}{% endif %}" target="_blank" class="peer"> | ||
{% if activity.thumbnail %} | ||
{% image activity.thumbnail fill-1200x630 class="w-full h-auto object-cover" %} | ||
{% elif activity.image %} | ||
{% image activity.image fill-1200x630 class="w-full h-auto object-cover" %} | ||
{% endif %} | ||
</a> | ||
<div class="border-t border-dark p-5 flex-grow peer-hover:bg-th-primary-light"> | ||
<div class="mb-4"> | ||
{% firstof activity.name activity.title as blog_title %} | ||
<a href="{% if activity|is_page %}{% pageurl activity %}{% else %}{{ activity.link }}{% endif %}" target="_blank" | ||
class=" | ||
text-lg/[1.15] font-semibold | ||
bg-right-bottom bg-[length:0%_0.5em] bg-no-repeat bg-gradient-to-r from-th-primary to-th-primary hover:bg-left-bottom hover:bg-[length:100%_0.5em] transition-[background-size] duration-700 ease-out | ||
" | ||
>{{ blog_title }}</a> | ||
</div> | ||
{% firstof activity.short_description activity.description as blog_description %} | ||
<p class="text-sm/[22px]">{{ blog_description }}</p> | ||
</div> | ||
</div> |
33 changes: 33 additions & 0 deletions
33
djnd/home/templates/home/partials/newsletter_activity.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{% load i18n static wagtailcore_tags wagtailimages_tags %} | ||
|
||
<div class="border border-dark flex flex-col relative"> | ||
<a href="{% pageurl activity %}" target="_blank" class="peer"> | ||
{% image activity.thumbnail fill-1200x630 class="w-full h-auto object-cover" %} | ||
</a> | ||
<div class="border-t border-dark p-5 flex-grow peer-hover:bg-th-primary-light"> | ||
{% if settings.home.GeneralSettings.our_work_page %} | ||
<div class="flex flex-wrap"> | ||
{% for tag in activity.pillar_page.all %} | ||
{% include "home/partials/activity_tag.html" with tag=tag filter_name="pillars" %} | ||
{% endfor %} | ||
{% for tag in activity.category.all %} | ||
{% include "home/partials/activity_tag.html" with tag=tag filter_name="categories" %} | ||
{% endfor %} | ||
{% for tag in activity.project.all %} | ||
{% include "home/partials/activity_tag.html" with tag=tag filter_name="projects" %} | ||
{% endfor %} | ||
</div> | ||
{% endif %} | ||
<div class="mt-5 mb-4"> | ||
<a href="{% pageurl activity %}" target="_blank" | ||
class=" | ||
text-3lg font-semibold xl-max:text-lg/[1.15] | ||
bg-right-bottom bg-[length:0%_0.5em] bg-no-repeat bg-gradient-to-r from-th-primary to-th-primary hover:bg-left-bottom hover:bg-[length:100%_0.5em] transition-[background-size] duration-700 ease-out | ||
" | ||
>{{ activity.title }}</a> | ||
</div> | ||
{% if activity.published_at %} | ||
<p class="font-mono mt-4">{{ activity.published_at|date:"F Y" }}</p> | ||
{% endif %} | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters