Skip to content

Commit

Permalink
support justify text-align for article
Browse files Browse the repository at this point in the history
  • Loading branch information
cntrump committed Dec 21, 2019
1 parent 226cae8 commit 5f95c89
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions archetypes/default.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ categories = []
imgs = []
toc = true
comments = false
justify = false # text-align: justify;
license = "" # CC License
draft = true
+++
Expand Down
6 changes: 3 additions & 3 deletions assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ html {
font-family: -system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, SimHei, "Segoe UI", Roboto, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
font-size: 16px;
font-weight: 400;
line-height: 1.6;
line-height: 1.65;
}
body {
display: block;
color: #3e3e3e;
color: #2f2f2f;
text-rendering: optimizeLegibility;
background-color: #fff;
margin: 0 auto;
Expand Down Expand Up @@ -375,7 +375,7 @@ acronym {
.note-title {
font-size: 18px;
font-weight: 600;
color: #3e3e3e;
color: #2f2f2f;
}
.note-content {
line-height: 1.5;
Expand Down
2 changes: 1 addition & 1 deletion layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ <h1>{{ .Title }}</h1>
</p>
</section>

<article class="markdown-body">
<article class="markdown-body" {{ if and (isset .Params "justify") (eq .Params.justify true) }}style="text-align: justify;"{{ end }}>
{{ .Content }}
</article>

Expand Down

0 comments on commit 5f95c89

Please sign in to comment.