+
{% endblock %}
\ No newline at end of file
diff --git a/blog/templates/blog/blog_page.html b/blog/templates/blog/blog_page.html
index 5e85027..c790824 100644
--- a/blog/templates/blog/blog_page.html
+++ b/blog/templates/blog/blog_page.html
@@ -80,4 +80,7 @@
+
+ {% include 'newsletter/snippets/signup_form.html' %}
+
{% endblock %}
\ No newline at end of file
diff --git a/home/models.py b/home/models.py
index 34d4bb1..140aece 100644
--- a/home/models.py
+++ b/home/models.py
@@ -4,6 +4,8 @@ from wagtail.models import Page
from wagtail.fields import RichTextField, StreamField
from wagtail.admin.panels import FieldPanel, MultiFieldPanel
from wagtailseo.models import SeoMixin, SeoType
+
+from blog.models import BlogPage
from .blocks import HomeContentBlock
@@ -57,3 +59,10 @@ class HomePage(SeoMixin, Page):
promote_panels = SeoMixin.seo_panels
seo_content_type = SeoType.WEBSITE
+
+ def get_context(self, request, *args, **kwargs):
+ context = super().get_context(request)
+ # retrieve the last 3 blogposts
+ recent_blog_items = BlogPage.objects.live().order_by('-first_published_at')[:3]
+ context['recent_blog_items'] = recent_blog_items
+ return context
\ No newline at end of file
diff --git a/home/templates/home/home_page.html b/home/templates/home/home_page.html
index e54aff8..161686a 100644
--- a/home/templates/home/home_page.html
+++ b/home/templates/home/home_page.html
@@ -5,749 +5,19 @@
{% block content %}
- Drawing of my computer desk where we see an iMac with an open Terminal
- with Swift code snippets. On the shelf behind we can see programming
- books for Rust, Swift and JavaScript. The books are arranges vertically
- next to a small flower pot. The flower has big green leafes. A cup of
- steaming coffee sits on the desk, to the left of the iMac.
+ 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.
-
+
-
+
@@ -775,10 +45,43 @@
+
+
From the blog
+
+ {% for post in recent_blog_items %}
+ {% with post=post.specific %}
+
+