Skip to content

Commit

Permalink
refactor: use no_justify shortcode to avoid justifying problematic text
Browse files Browse the repository at this point in the history
  • Loading branch information
echozio committed Feb 2, 2024
1 parent 9f85894 commit ecade98
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
7 changes: 6 additions & 1 deletion assets/css/extended/text-justify.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
.post-content p {
text-align: justify;
text-justify: inter-word;
word-spacing: -0.0625em;
}

@media (max-width: 600px) {
.post-content p {
hyphens: auto;
}
}

.no-justify {
text-align: initial;
text-justify: none;
hyphens: none;
}
2 changes: 2 additions & 0 deletions content/kurs.md
Original file line number Diff line number Diff line change
Expand Up @@ -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å
[[email protected]](mailto:[email protected]).
{{< /no_justify >}}
2 changes: 2 additions & 0 deletions content/nyheter/2024-02-02-aarsmoete/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
[[email protected]](mailto:[email protected]). Frist for dette er 29.
februar.
{{< /no_justify >}}

Mer informasjon kommer snart.
1 change: 1 addition & 0 deletions layouts/shortcodes/no_justify
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<span class="no-justify">{{.Inner | markdownify}}</span>

0 comments on commit ecade98

Please sign in to comment.