diff --git a/blog/templates/blog/blog_index_page.html b/blog/templates/blog/blog_index_page.html index 72f698a..17d63a4 100644 --- a/blog/templates/blog/blog_index_page.html +++ b/blog/templates/blog/blog_index_page.html @@ -9,65 +9,55 @@
-

{{ page.title }}

+

{{ page.title }}

{{ page.intro|richtext }}
{% for post in blogpages %} {% with post=post.specific %}
-
- {% with post.main_image as main_image %} - {% if main_image %} - {% image main_image width-800 class="blog absolute inset-0 h-full w-full rounded-2xl bg-gray-50 object-cover" %}{% endif %} - {% endwith %} -
+
+

+ + + {{ post.title }} + +

+

{{ post.intro }}

-
-
- - - {% with tags=post.tags.all %} - {% if tags %} -
-

Tags

-
    - {% for tag in tags %} -
  • 🏷️ - {{ tag }} -
  • - {% endfor %} -
-
- {% endif %} + {% if post.main_image %} +
+ {% with post.main_image as main_image %} + {% if main_image %} + {% image main_image width-800 class="blog absolute inset-0 h-full w-full rounded-2xl bg-gray-50 object-cover" %}{% endif %} {% endwith %} +
-
-

- - - {{ post.title }} - -

-

{{ post.intro }}

+ {% endif %} +
+
+
- {#
#} - {#
#} - {# #} - {#
#} - {#

#} - {# #} - {# #} - {# Michael Foster#} - {# #} - {#

#} - {#

Co-Founder / CTO

#} - {#
#} - {#
#} - {#
#} + + {% with tags=post.tags.all %} + {% if tags %} +
+

Tags

+
    + {% for tag in tags %} +
  • 🏷️ + {{ tag }} +
  • + {% endfor %} +
+
+ {% endif %} + {% endwith %}
+
{% endwith %} {% endfor %} diff --git a/blog/templates/blog/blog_page.html b/blog/templates/blog/blog_page.html index f2123d0..900bd49 100644 --- a/blog/templates/blog/blog_page.html +++ b/blog/templates/blog/blog_page.html @@ -36,9 +36,10 @@ {% endif %} {% endwith %} -
{{ page.intro }}
-
+
+
{{ page.intro }}
+ {{ page.body }}
@@ -49,25 +50,27 @@
{% endfor %}
+ + + {% with tags=page.tags.all %} + {% if tags %} +
+
+

Tags

+
    + {% for tag in tags %} +
  • 🏷️ + {{ tag }} +
  • + {% endfor %} +
+
+
+ + {% endif %} + {% endwith %}
- {% with tags=page.tags.all %} - {% if tags %} -
-
-

Tags

-
    - {% for tag in tags %} -
  • 🏷️ - {{ tag }} -
  • - {% endfor %} -
-
-
- - {% endif %} - {% endwith %} diff --git a/iamkonstantin_web/settings/base.py b/iamkonstantin_web/settings/base.py index c207151..f15a4fb 100644 --- a/iamkonstantin_web/settings/base.py +++ b/iamkonstantin_web/settings/base.py @@ -203,6 +203,8 @@ WAGTAIL_CODE_BLOCK_LANGUAGES = ( WAGTAIL_CODE_BLOCK_THEME = 'twilight' +WAGTAIL_CODE_BLOCK_LINE_NUMBERS = False + TAILWIND_APP_NAME = 'theme' INTERNAL_IPS = [ diff --git a/theme/static_src/src/styles.css b/theme/static_src/src/styles.css index feba69e..7f3b4e1 100644 --- a/theme/static_src/src/styles.css +++ b/theme/static_src/src/styles.css @@ -49,7 +49,7 @@ } .blog-content img { - @apply rounded-xl bg-gray-50 object-cover rounded-2xl shadow-lg; + @apply rounded-xl bg-gray-50 object-cover rounded-2xl shadow-lg mx-auto my-6; } @@ -78,6 +78,11 @@ .primary-button { @apply rounded-full bg-klavender cursor-pointer px-4 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600; } + + code[class*="language-"], pre[class*="language-"] { + white-space: normal !important; + word-break: break-word !important; + } } .tags ul {