Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Commit

Permalink
Blog: Make posts justified with hyphenation
Browse files Browse the repository at this point in the history
  • Loading branch information
Moeenahamd authored and kirillt committed Jan 14, 2024
1 parent 970cc71 commit 1a57e51
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
7 changes: 6 additions & 1 deletion sass/_custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -200,4 +200,9 @@ th[data-dir="desc"]::after {
#label {
text-align: center;
}
}
}

.justify {
text-align: justify;
hyphens: auto;
}
4 changes: 2 additions & 2 deletions templates/blog/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ <h1>{{ page.title }}</h1>
{% endif %}
</div>

<div class="lead">
<div class="lead justify">
{{ page.description | safe }}
</div>
<div class="pt-4 lead">
<div class="pt-4 lead justify">
{{ page.content | safe }}
</div>
</article>
Expand Down
2 changes: 1 addition & 1 deletion templates/blog/section.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ <h1 class="text-center">{{ section.title }}</h1>
<div class="container">
<div class="row justify-content-center">
{% for page in paginator.pages %}
<div class="col-12">
<div class="col-12 justify">
<a href="{{page.permalink}}">
<h1>{{ page.title }}</h1>
</a>
Expand Down

0 comments on commit 1a57e51

Please sign in to comment.