Compare commits
No commits in common. "7d29024865915afc558428ace59a0b8699f8bc5f" and "1b3a2dec72330cbc7feb513cd4baffd3e022fa2c" have entirely different histories.
7d29024865
...
1b3a2dec72
3
.gitignore
vendored
|
@ -166,6 +166,3 @@ cython_debug/
|
||||||
#.idea/
|
#.idea/
|
||||||
|
|
||||||
.env.production
|
.env.production
|
||||||
|
|
||||||
media/images/
|
|
||||||
media/original_images/
|
|
2
Makefile
|
@ -1,5 +1,5 @@
|
||||||
.PHONY: help build publish
|
.PHONY: help build publish
|
||||||
VERSION = 1.7.0
|
VERSION = 1.5.0
|
||||||
|
|
||||||
help:
|
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}'
|
@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,4 +1,3 @@
|
||||||
from wagtail.api import APIField
|
|
||||||
from wagtail.blocks import (
|
from wagtail.blocks import (
|
||||||
CharBlock,
|
CharBlock,
|
||||||
ChoiceBlock,
|
ChoiceBlock,
|
||||||
|
@ -15,13 +14,6 @@ class ImageBlock(StructBlock):
|
||||||
caption = CharBlock(required=False)
|
caption = CharBlock(required=False)
|
||||||
attribution = 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:
|
class Meta:
|
||||||
icon = "image"
|
icon = "image"
|
||||||
template = "base/blocks/image_block.html"
|
template = "base/blocks/image_block.html"
|
||||||
|
|
|
@ -6,7 +6,6 @@ from modelcluster.fields import ParentalKey, ParentalManyToManyField
|
||||||
from modelcluster.contrib.taggit import ClusterTaggableManager
|
from modelcluster.contrib.taggit import ClusterTaggableManager
|
||||||
from taggit.models import TaggedItemBase
|
from taggit.models import TaggedItemBase
|
||||||
from wagtail.api import APIField
|
from wagtail.api import APIField
|
||||||
from wagtail.images.api.fields import ImageRenditionField
|
|
||||||
|
|
||||||
from wagtail.models import Page, Orderable
|
from wagtail.models import Page, Orderable
|
||||||
from wagtail.fields import RichTextField, StreamField
|
from wagtail.fields import RichTextField, StreamField
|
||||||
|
@ -79,7 +78,6 @@ class BlogPage(SeoMixin, Page):
|
||||||
# Export fields over the API
|
# Export fields over the API
|
||||||
api_fields = [
|
api_fields = [
|
||||||
APIField('gallery_images'),
|
APIField('gallery_images'),
|
||||||
# Adds a URL to a rendered thumbnail of the image to the API
|
|
||||||
APIField('body'),
|
APIField('body'),
|
||||||
APIField('intro'),
|
APIField('intro'),
|
||||||
APIField('tags'),
|
APIField('tags'),
|
||||||
|
|
|
@ -9,13 +9,13 @@
|
||||||
>
|
>
|
||||||
<figure class="w-1/2" style="min-width: 24rem">
|
<figure class="w-1/2" style="min-width: 24rem">
|
||||||
<figcaption class="sr-only">
|
<figcaption class="sr-only">
|
||||||
Hero image
|
Drawing of my computer desk where we see a computer with an open Terminal
|
||||||
</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
|
with Elixir code snippets. On the shelf behind we can see programming
|
||||||
books for Rust, Elixir and JavaScript. The books are arranges vertically
|
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
|
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." />
|
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" />
|
||||||
</figure>
|
</figure>
|
||||||
<section class="w-100 text-lg dark:text-white mx-2">
|
<section class="w-100 text-lg dark:text-white mx-2">
|
||||||
<h1
|
<h1
|
||||||
|
@ -25,8 +25,8 @@
|
||||||
><img
|
><img
|
||||||
width="48px"
|
width="48px"
|
||||||
height="48px"
|
height="48px"
|
||||||
alt="waving hand emoji"
|
src="static/images/waving-hand-sign_1f44b.png" /></span
|
||||||
src="static/images/waving-hand-sign_1f44b.png" /></span>Hi! I'm Konstantin
|
>Hi! I'm Konstantin
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
</section>
|
</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">
|
<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 %}
|
{% for post in recent_blog_items %}
|
||||||
{% with post=post.specific %}
|
{% with post=post.specific %}
|
||||||
<li class="flex flex-col items-center justify-start max-w-xl">
|
<article class="flex flex-col items-center justify-start max-w-xl">
|
||||||
<div class="group relative w-full">
|
<div class="group relative w-full">
|
||||||
<h3 class="">
|
<h3 class="">
|
||||||
<a href="{% pageurl post %}">
|
<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 class="absolute inset-0 rounded-2xl ring-1 ring-inset ring-gray-900/10"></div>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</li>
|
</article>
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -152,7 +152,7 @@ WAGTAIL_CONTENT_LANGUAGES = LANGUAGES = [
|
||||||
('nl', "Dutch"),
|
('nl', "Dutch"),
|
||||||
]
|
]
|
||||||
|
|
||||||
WAGTAILSIMPLETRANSLATION_SYNC_PAGE_TREE = False
|
WAGTAILSIMPLETRANSLATION_SYNC_PAGE_TREE = True
|
||||||
|
|
||||||
# Static files (CSS, JavaScript, Images)
|
# Static files (CSS, JavaScript, Images)
|
||||||
# https://docs.djangoproject.com/en/5.0/howto/static-files/
|
# https://docs.djangoproject.com/en/5.0/howto/static-files/
|
||||||
|
|
After Width: | Height: | Size: 30 KiB |
After Width: | Height: | Size: 106 KiB |
BIN
media/images/097d70b8f56ef0dbeaefd4a981ccc510.max-165x165.png
Normal file
After Width: | Height: | Size: 37 KiB |
BIN
media/images/097d70b8f56ef0dbeaefd4a981ccc510.width-1600.png
Normal file
After Width: | Height: | Size: 1.5 MiB |
BIN
media/images/097d70b8f56ef0dbeaefd4a981ccc510.width-400.png
Normal file
After Width: | Height: | Size: 151 KiB |
BIN
media/images/097d70b8f56ef0dbeaefd4a981ccc510.width-800.png
Normal file
After Width: | Height: | Size: 472 KiB |
After Width: | Height: | Size: 5 KiB |
After Width: | Height: | Size: 942 B |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 4.8 KiB |
BIN
media/images/_508d3ac3-6905-4b23-b662-a3604050ac80.width-28.jpg
Normal file
After Width: | Height: | Size: 942 B |
BIN
media/images/moon_and_planets_design.2e16d0ba.fill-320x240.jpg
Normal file
After Width: | Height: | Size: 8.2 KiB |
BIN
media/images/moon_and_planets_design.2e16d0ba.fill-600x338.jpg
Normal file
After Width: | Height: | Size: 20 KiB |
BIN
media/images/moon_and_planets_design.max-165x165.jpg
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
media/images/moon_and_planets_design.original.jpg
Normal file
After Width: | Height: | Size: 89 KiB |
BIN
media/images/pexels-life-of-pix-8892.2e16d0ba.fill-480x320.jpg
Normal file
After Width: | Height: | Size: 31 KiB |
BIN
media/images/pexels-life-of-pix-8892.max-165x165.jpg
Normal file
After Width: | Height: | Size: 6.8 KiB |
BIN
media/images/pexels-life-of-pix-8892.max-800x600.jpg
Normal file
After Width: | Height: | Size: 89 KiB |
BIN
media/images/pexels-life-of-pix-8892.width-800.jpg
Normal file
After Width: | Height: | Size: 89 KiB |
BIN
media/original_images/097d70b8f56ef0dbeaefd4a981ccc510.png
Normal file
After Width: | Height: | Size: 1.5 MiB |
BIN
media/original_images/_508d3ac3-6905-4b23-b662-a3604050ac80.jpeg
Normal file
After Width: | Height: | Size: 94 KiB |
BIN
media/original_images/moon_and_planets_design.jpeg
Normal file
After Width: | Height: | Size: 208 KiB |
BIN
media/original_images/pexels-life-of-pix-8892.jpg
Normal file
After Width: | Height: | Size: 1.7 MiB |
|
@ -1,4 +1,4 @@
|
||||||
<div class="py-16 sm:py-24 lg:py-32">
|
<div class="py-16 sm:py-24 lg:py-32">
|
||||||
<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>
|
<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>
|
||||||
<script type="text/javascript" src="https://app.mailjet.com/pas-nc-embedded-v1.js"></script>
|
<script type="text/javascript" src="https://app.mailjet.com/pas-nc-embedded-v1.js"></script>
|
||||||
</div>
|
</div>
|
|
@ -3,6 +3,6 @@ wagtail>=6.3.1,<6.4
|
||||||
whitenoise>=6.6,<7.0
|
whitenoise>=6.6,<7.0
|
||||||
wagtailcodeblock>=1.29.0.2,<2.0
|
wagtailcodeblock>=1.29.0.2,<2.0
|
||||||
django-tailwind>=3.6.0
|
django-tailwind>=3.6.0
|
||||||
django-browser-reload>=1.17
|
django-browser-reload>=1.12
|
||||||
Wand==0.6.13
|
Wand==0.6.13
|
||||||
wagtail-seo==2.5.0
|
wagtail-seo==2.5.0
|