Compare commits

..

5 commits

Author SHA1 Message Date
762d800ce4
add newsletter tag 2025-02-13 11:01:07 +01:00
e7cab9534e
Improve search look and feel 2025-02-13 10:53:55 +01:00
41508948c6
upgrade wagtail 2025-02-13 10:41:17 +01:00
f8f7021198
add newsletter anchor 2025-02-13 10:39:17 +01:00
21121e77ad
fix: height 2024-12-16 12:06:21 +01:00
8 changed files with 24 additions and 12 deletions

View file

@ -17,7 +17,7 @@
<excludeFolder url="file://$MODULE_DIR$/env" />
<excludeFolder url="file://$MODULE_DIR$/venv" />
</content>
<orderEntry type="jdk" jdkName="Python 3.13 (iamkonstantin-web)" jdkType="Python SDK" />
<orderEntry type="jdk" jdkName="Python 3.12 virtualenv at ~/Developer/personal/iamkonstantin-web/venv" jdkType="Python SDK" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
<component name="PyDocumentationSettings">

2
.idea/misc.xml generated
View file

@ -3,5 +3,5 @@
<component name="Black">
<option name="sdkName" value="Python 3.12 (iamkonstantin-web)" />
</component>
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.13 (iamkonstantin-web)" project-jdk-type="Python SDK" />
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.12 virtualenv at ~/Developer/personal/iamkonstantin-web/venv" project-jdk-type="Python SDK" />
</project>

1
.tool-versions Normal file
View file

@ -0,0 +1 @@
python 3.12.8

View file

@ -1,5 +1,5 @@
.PHONY: help build publish
VERSION = 1.8.0
VERSION = 1.9.1
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}'

View file

@ -58,8 +58,9 @@
{{ post.title }}
</a>
</h3>
<p class="mt-5 leading-6 min-h-0 lg:min-h-32">{{ post.intro }}</p>
<p class="mt-5 leading-6">{{ post.intro }}</p>
</div>
{% if post.main_image %}
<div class="relative mx-auto">
{% with post.main_image as main_image %}
@ -81,7 +82,9 @@
</div>
</section>
<section>
<section>
<h2 id="newsletter" class="sr-only">Newsletter</h2>
{% include 'newsletter/snippets/signup_form.html' %}
</section>
{% endblock content %}

View file

@ -1,5 +1,5 @@
Django>=5.1.4,<5.2
wagtail>=6.3.1,<6.4
wagtail>=6.4,<6.5
whitenoise>=6.6,<7.0
wagtailcodeblock>=1.29.0.2,<2.0
django-tailwind>=3.6.0

View file

@ -13,13 +13,11 @@
<form action="{% url 'search' %}" method="get" class="container">
<div class="flex flex-col space-y-4">
<label for="query" class="sr-only block text-sm font-medium leading-6">Search</label>
<div class="mt-2">
<div class="mt-2 flex space-x-4">
<input type="text" placeholder="Type search keywords..."
class="block w-full rounded-md border-0 py-1.5 shadow-sm ring-1 ring-inset ring-gray-300 focus:ring-2 focus:ring-inset focus:ring-klavender sm:text-sm sm:leading-6"
class="block w-full rounded-xl border-0 py-1.5 px-2 shadow-sm ring-1 ring-inset ring-gray-300 focus:ring-2 focus:ring-inset focus:ring-klavender sm:text-sm sm:leading-6"
id="query" name="query"{% if search_query %} value="{{ search_query }}"{% endif %}>
</div>
<div>
<input type="submit" class="primary-button" value="Search">
</div>
</div>
@ -30,7 +28,7 @@
</div>
</section>
<section class="h-full px-0 md:px-4 lg:px-8">
<section class="h-full px-0 md:px-4 lg:px-8 search">
<div class="px-0 md:px-4 lg:px-8">
<h2 class="sr-only">Search results</h2>
@ -48,6 +46,8 @@
<h4><a href="{% pageurl result %}">{{ result }}</a></h4>
{% if result.search_description %}
{{ result.search_description }}
{% elif result.post.intro %}
{{ result.post.intro }}
{% endif %}
</li>
{% endfor %}

View file

@ -60,11 +60,19 @@
@apply my-2 text-lg;
}
.search li {
@apply my-6;
}
.search li h4 {
@apply inline;
}
.blog-content ul, .home-content ul {
@apply list-none list-inside;
}
.blog-content ul li::before, .home-content ul li::before {
.blog-content ul li::before, .home-content ul li::before, .search li::before {
content: "👉";
font-family: NotoEmoji;
@apply inline-block mr-2 py-1;