diff --git a/axum_server/src/filters.rs b/axum_server/src/filters.rs index 5224d7f..4b83b3a 100644 --- a/axum_server/src/filters.rs +++ b/axum_server/src/filters.rs @@ -12,7 +12,7 @@ pub fn description_filter(body: &String) -> ::askama::Result { let description = body .lines() .filter(|line| line.starts_with(">() .join("\n"); debug!(description); diff --git a/axum_server/styles/output.css b/axum_server/styles/output.css index 5426b51..8a585a0 100644 --- a/axum_server/styles/output.css +++ b/axum_server/styles/output.css @@ -1,5 +1,5 @@ /* -! tailwindcss v3.4.3 | MIT License | https://tailwindcss.com +! tailwindcss v3.4.4 | MIT License | https://tailwindcss.com */ /* @@ -615,6 +615,11 @@ video { margin-bottom: 1.5rem; } +.my-5 { + margin-top: 1.25rem; + margin-bottom: 1.25rem; +} + .mb-1 { margin-bottom: 0.25rem; } @@ -683,10 +688,34 @@ video { flex-grow: 1; } +.auto-cols-auto { + grid-auto-columns: auto; +} + .grid-flow-col { grid-auto-flow: column; } +.grid-cols-2 { + grid-template-columns: repeat(2, minmax(0, 1fr)); +} + +.grid-cols-\[minmax\(0\2c 1fr\)_auto\] { + grid-template-columns: minmax(0,1fr) auto; +} + +.grid-cols-\[1fr\2c 2fx\] { + grid-template-columns: 1fr 2fx; +} + +.grid-cols-\[1fr_2fx\] { + grid-template-columns: 1fr 2fx; +} + +.grid-cols-\[1fr_2fr\] { + grid-template-columns: 1fr 2fr; +} + .grid-rows-3 { grid-template-rows: repeat(3, minmax(0, 1fr)); } @@ -850,6 +879,10 @@ video { font-weight: 600; } +.font-bold { + font-weight: 700; +} + .capitalize { text-transform: capitalize; } @@ -897,6 +930,10 @@ video { color: rgb(80 7 36 / var(--tw-text-opacity)); } +.no-underline { + text-decoration-line: none; +} + .drop-shadow-md { --tw-drop-shadow: drop-shadow(0 4px 3px rgb(0 0 0 / 0.07)) drop-shadow(0 2px 2px rgb(0 0 0 / 0.06)); filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow); diff --git a/axum_server/templates/components/post_preview.html b/axum_server/templates/components/post_preview.html index 1d6522a..72cf6e0 100644 --- a/axum_server/templates/components/post_preview.html +++ b/axum_server/templates/components/post_preview.html @@ -1,15 +1,23 @@ -
+
-

{{post.metadata.title}}

+

{{post.metadata.title}}

-
{{post.body|description_filter|safe}}
-
- Footrik +
{{post.body|description_filter|safe}}
+
+ + | +
diff --git a/axum_server/templates/index.html b/axum_server/templates/index.html index 5386630..119014c 100644 --- a/axum_server/templates/index.html +++ b/axum_server/templates/index.html @@ -54,6 +54,7 @@ {% for post in featured_posts %}
  • {% include "components/post_preview.html" %} +
  • {% endfor %} diff --git a/axum_server/templates/post_preview_card.html b/axum_server/templates/post_preview_card.html index f148cda..eb96288 100644 --- a/axum_server/templates/post_preview_card.html +++ b/axum_server/templates/post_preview_card.html @@ -8,7 +8,7 @@ {% include "post_tag_list.html" %}
    Published on - +