Compare commits
5 commits
3659cf902a
...
762d800ce4
Author | SHA1 | Date | |
---|---|---|---|
762d800ce4 | |||
e7cab9534e | |||
41508948c6 | |||
f8f7021198 | |||
21121e77ad |
8 changed files with 24 additions and 12 deletions
2
.idea/iamkonstantin-web.iml
generated
2
.idea/iamkonstantin-web.iml
generated
|
@ -17,7 +17,7 @@
|
||||||
<excludeFolder url="file://$MODULE_DIR$/env" />
|
<excludeFolder url="file://$MODULE_DIR$/env" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/venv" />
|
<excludeFolder url="file://$MODULE_DIR$/venv" />
|
||||||
</content>
|
</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" />
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
</component>
|
</component>
|
||||||
<component name="PyDocumentationSettings">
|
<component name="PyDocumentationSettings">
|
||||||
|
|
2
.idea/misc.xml
generated
2
.idea/misc.xml
generated
|
@ -3,5 +3,5 @@
|
||||||
<component name="Black">
|
<component name="Black">
|
||||||
<option name="sdkName" value="Python 3.12 (iamkonstantin-web)" />
|
<option name="sdkName" value="Python 3.12 (iamkonstantin-web)" />
|
||||||
</component>
|
</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>
|
</project>
|
1
.tool-versions
Normal file
1
.tool-versions
Normal file
|
@ -0,0 +1 @@
|
||||||
|
python 3.12.8
|
2
Makefile
2
Makefile
|
@ -1,5 +1,5 @@
|
||||||
.PHONY: help build publish
|
.PHONY: help build publish
|
||||||
VERSION = 1.8.0
|
VERSION = 1.9.1
|
||||||
|
|
||||||
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}'
|
||||||
|
|
|
@ -58,8 +58,9 @@
|
||||||
{{ post.title }}
|
{{ post.title }}
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</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>
|
</div>
|
||||||
|
|
||||||
{% if post.main_image %}
|
{% if post.main_image %}
|
||||||
<div class="relative mx-auto">
|
<div class="relative mx-auto">
|
||||||
{% with post.main_image as main_image %}
|
{% with post.main_image as main_image %}
|
||||||
|
@ -81,7 +82,9 @@
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
|
<h2 id="newsletter" class="sr-only">Newsletter</h2>
|
||||||
{% include 'newsletter/snippets/signup_form.html' %}
|
{% include 'newsletter/snippets/signup_form.html' %}
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
{% endblock content %}
|
{% endblock content %}
|
|
@ -1,5 +1,5 @@
|
||||||
Django>=5.1.4,<5.2
|
Django>=5.1.4,<5.2
|
||||||
wagtail>=6.3.1,<6.4
|
wagtail>=6.4,<6.5
|
||||||
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
|
||||||
|
|
|
@ -13,13 +13,11 @@
|
||||||
<form action="{% url 'search' %}" method="get" class="container">
|
<form action="{% url 'search' %}" method="get" class="container">
|
||||||
<div class="flex flex-col space-y-4">
|
<div class="flex flex-col space-y-4">
|
||||||
<label for="query" class="sr-only block text-sm font-medium leading-6">Search</label>
|
<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..."
|
<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 %}>
|
id="query" name="query"{% if search_query %} value="{{ search_query }}"{% endif %}>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div>
|
|
||||||
<input type="submit" class="primary-button" value="Search">
|
<input type="submit" class="primary-button" value="Search">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -30,7 +28,7 @@
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</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">
|
<div class="px-0 md:px-4 lg:px-8">
|
||||||
<h2 class="sr-only">Search results</h2>
|
<h2 class="sr-only">Search results</h2>
|
||||||
|
|
||||||
|
@ -48,6 +46,8 @@
|
||||||
<h4><a href="{% pageurl result %}">{{ result }}</a></h4>
|
<h4><a href="{% pageurl result %}">{{ result }}</a></h4>
|
||||||
{% if result.search_description %}
|
{% if result.search_description %}
|
||||||
{{ result.search_description }}
|
{{ result.search_description }}
|
||||||
|
{% elif result.post.intro %}
|
||||||
|
{{ result.post.intro }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
|
@ -60,11 +60,19 @@
|
||||||
@apply my-2 text-lg;
|
@apply my-2 text-lg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.search li {
|
||||||
|
@apply my-6;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search li h4 {
|
||||||
|
@apply inline;
|
||||||
|
}
|
||||||
|
|
||||||
.blog-content ul, .home-content ul {
|
.blog-content ul, .home-content ul {
|
||||||
@apply list-none list-inside;
|
@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: "👉";
|
content: "👉";
|
||||||
font-family: NotoEmoji;
|
font-family: NotoEmoji;
|
||||||
@apply inline-block mr-2 py-1;
|
@apply inline-block mr-2 py-1;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue