commit ecade986017c22018447c112618adb31535e8b17
parent 9f858943a5cbf7da9d32854d921eddb97310a710
Author: Chris <chris@echoz.io>
Date: Fri, 2 Feb 2024 05:17:49 +0100
refactor: use no_justify shortcode to avoid justifying problematic text
Diffstat:
4 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/assets/css/extended/text-justify.css b/assets/css/extended/text-justify.css
@@ -1,7 +1,6 @@
.post-content p {
text-align: justify;
text-justify: inter-word;
- word-spacing: -0.0625em;
}
@media (max-width: 600px) {
@@ -9,3 +8,9 @@
hyphens: auto;
}
}
+
+.no-justify {
+ text-align: initial;
+ text-justify: none;
+ hyphens: none;
+}
diff --git a/content/kurs.md b/content/kurs.md
@@ -18,5 +18,7 @@ pistolskytter.
Vi har bestemt at det er 16 års aldersgrense for å ta introduksjonskurset og for å delta på
skytetrening hos Lillehammer pistolklubb.
+{{< no_justify >}}
Kursene avholdes ved behov, så send oss en e-post på
[kurs.lillehammerpistolklubb@gmail.com](mailto:kurs.lillehammerpistolklubb@gmail.com).
+{{< /no_justify >}}
diff --git a/content/nyheter/2024-02-02-aarsmoete/index.md b/content/nyheter/2024-02-02-aarsmoete/index.md
@@ -4,8 +4,10 @@ date: 2024-02-02
---
Vi kaller inn til årsmøte 14. mars i kaféen på skytebanen i Fåberg.
+{{< no_justify >}}
Send gjerne inn saker du ønsker tas opp på årsmøtet til
[lillehammerpistolklubb@gmail.com](mailto:lillehammerpistolklubb@gmail.com). Frist for dette er 29.
februar.
+{{< /no_justify >}}
Mer informasjon kommer snart.
diff --git a/layouts/shortcodes/no_justify b/layouts/shortcodes/no_justify
@@ -0,0 +1 @@
+<span class="no-justify">{{.Inner | markdownify}}</span>