Compare commits
6 commits
1b3a2dec72
...
7d29024865
Author | SHA1 | Date | |
---|---|---|---|
7d29024865 | |||
6d7dd1f2af | |||
6e63965602 | |||
9db1c5a8fe | |||
7b42bb92c1 | |||
917695a1da |
3
.gitignore
vendored
|
@ -166,3 +166,6 @@ cython_debug/
|
|||
#.idea/
|
||||
|
||||
.env.production
|
||||
|
||||
media/images/
|
||||
media/original_images/
|
2
Makefile
|
@ -1,5 +1,5 @@
|
|||
.PHONY: help build publish
|
||||
VERSION = 1.5.0
|
||||
VERSION = 1.7.0
|
||||
|
||||
help:
|
||||
@perl -nle'print $& if m{^[a-zA-Z_-]+:.*?## .*$$}' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
from wagtail.api import APIField
|
||||
from wagtail.blocks import (
|
||||
CharBlock,
|
||||
ChoiceBlock,
|
||||
|
@ -14,6 +15,13 @@ class ImageBlock(StructBlock):
|
|||
caption = CharBlock(required=False)
|
||||
attribution = CharBlock(required=False)
|
||||
|
||||
api_fields = [
|
||||
APIField('image'),
|
||||
# Adds a URL to a rendered thumbnail of the image to the API
|
||||
APIField('caption'),
|
||||
APIField('attribution'),
|
||||
]
|
||||
|
||||
class Meta:
|
||||
icon = "image"
|
||||
template = "base/blocks/image_block.html"
|
||||
|
|
|
@ -6,6 +6,7 @@ from modelcluster.fields import ParentalKey, ParentalManyToManyField
|
|||
from modelcluster.contrib.taggit import ClusterTaggableManager
|
||||
from taggit.models import TaggedItemBase
|
||||
from wagtail.api import APIField
|
||||
from wagtail.images.api.fields import ImageRenditionField
|
||||
|
||||
from wagtail.models import Page, Orderable
|
||||
from wagtail.fields import RichTextField, StreamField
|
||||
|
@ -78,6 +79,7 @@ class BlogPage(SeoMixin, Page):
|
|||
# Export fields over the API
|
||||
api_fields = [
|
||||
APIField('gallery_images'),
|
||||
# Adds a URL to a rendered thumbnail of the image to the API
|
||||
APIField('body'),
|
||||
APIField('intro'),
|
||||
APIField('tags'),
|
||||
|
|
|
@ -9,13 +9,13 @@
|
|||
>
|
||||
<figure class="w-1/2" style="min-width: 24rem">
|
||||
<figcaption class="sr-only">
|
||||
Drawing of my computer desk where we see a computer with an open Terminal
|
||||
Hero image
|
||||
</figcaption>
|
||||
<img src="/static/images/my-office.png" alt="Drawing of my computer desk where we see a computer with an open Terminal
|
||||
with Elixir code snippets. On the shelf behind we can see programming
|
||||
books for Rust, Elixir and JavaScript. The books are arranges vertically
|
||||
next to a small flower pot. The flower has big green leaves. A cup of
|
||||
steaming coffee sits on the desk, to the left of the computer. The cup has a Python logo on it.
|
||||
</figcaption>
|
||||
<img src="/static/images/my-office.png" />
|
||||
steaming coffee sits on the desk, to the left of the computer. The cup has a Python logo on it." />
|
||||
</figure>
|
||||
<section class="w-100 text-lg dark:text-white mx-2">
|
||||
<h1
|
||||
|
@ -25,8 +25,8 @@
|
|||
><img
|
||||
width="48px"
|
||||
height="48px"
|
||||
src="static/images/waving-hand-sign_1f44b.png" /></span
|
||||
>Hi! I'm Konstantin
|
||||
alt="waving hand emoji"
|
||||
src="static/images/waving-hand-sign_1f44b.png" /></span>Hi! I'm Konstantin
|
||||
</h1>
|
||||
|
||||
</section>
|
||||
|
@ -50,7 +50,7 @@
|
|||
<ul class="mx-auto mt-8 grid max-w-2xl grid-cols-1 gap-x-8 gap-y-20 lg:mx-0 lg:max-w-none lg:grid-cols-3">
|
||||
{% for post in recent_blog_items %}
|
||||
{% with post=post.specific %}
|
||||
<article class="flex flex-col items-center justify-start max-w-xl">
|
||||
<li class="flex flex-col items-center justify-start max-w-xl">
|
||||
<div class="group relative w-full">
|
||||
<h3 class="">
|
||||
<a href="{% pageurl post %}">
|
||||
|
@ -69,7 +69,7 @@
|
|||
<div class="absolute inset-0 rounded-2xl ring-1 ring-inset ring-gray-900/10"></div>
|
||||
</div>
|
||||
{% endif %}
|
||||
</article>
|
||||
</li>
|
||||
{% endwith %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
|
|
@ -152,7 +152,7 @@ WAGTAIL_CONTENT_LANGUAGES = LANGUAGES = [
|
|||
('nl', "Dutch"),
|
||||
]
|
||||
|
||||
WAGTAILSIMPLETRANSLATION_SYNC_PAGE_TREE = True
|
||||
WAGTAILSIMPLETRANSLATION_SYNC_PAGE_TREE = False
|
||||
|
||||
# Static files (CSS, JavaScript, Images)
|
||||
# https://docs.djangoproject.com/en/5.0/howto/static-files/
|
||||
|
|
Before Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 106 KiB |
Before Width: | Height: | Size: 37 KiB |
Before Width: | Height: | Size: 1.5 MiB |
Before Width: | Height: | Size: 151 KiB |
Before Width: | Height: | Size: 472 KiB |
Before Width: | Height: | Size: 5 KiB |
Before Width: | Height: | Size: 942 B |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 942 B |
Before Width: | Height: | Size: 8.2 KiB |
Before Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 89 KiB |
Before Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 6.8 KiB |
Before Width: | Height: | Size: 89 KiB |
Before Width: | Height: | Size: 89 KiB |
Before Width: | Height: | Size: 1.5 MiB |
Before Width: | Height: | Size: 94 KiB |
Before Width: | Height: | Size: 208 KiB |
Before Width: | Height: | Size: 1.7 MiB |
|
@ -1,4 +1,4 @@
|
|||
<div class="py-16 sm:py-24 lg:py-32">
|
||||
<iframe data-w-type="embedded" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://sgx7y.mjt.lu/wgt/sgx7y/xtn1/form?c=c9b8015e" width="100%" style="height: 0;"></iframe>
|
||||
<iframe data-w-type="embedded" title="Newsletter" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://sgx7y.mjt.lu/wgt/sgx7y/xtn1/form?c=c9b8015e" width="100%" style="height: 0;"></iframe>
|
||||
<script type="text/javascript" src="https://app.mailjet.com/pas-nc-embedded-v1.js"></script>
|
||||
</div>
|
|
@ -3,6 +3,6 @@ wagtail>=6.3.1,<6.4
|
|||
whitenoise>=6.6,<7.0
|
||||
wagtailcodeblock>=1.29.0.2,<2.0
|
||||
django-tailwind>=3.6.0
|
||||
django-browser-reload>=1.12
|
||||
django-browser-reload>=1.17
|
||||
Wand==0.6.13
|
||||
wagtail-seo==2.5.0
|