Skip to content

Commit 5f95c89

Browse files
committed
support justify text-align for article
1 parent 226cae8 commit 5f95c89

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

archetypes/default.md

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ categories = []
66
imgs = []
77
toc = true
88
comments = false
9+
justify = false # text-align: justify;
910
license = "" # CC License
1011
draft = true
1112
+++

assets/css/style.css

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ html {
1414
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";
1515
font-size: 16px;
1616
font-weight: 400;
17-
line-height: 1.6;
17+
line-height: 1.65;
1818
}
1919
body {
2020
display: block;
21-
color: #3e3e3e;
21+
color: #2f2f2f;
2222
text-rendering: optimizeLegibility;
2323
background-color: #fff;
2424
margin: 0 auto;
@@ -375,7 +375,7 @@ acronym {
375375
.note-title {
376376
font-size: 18px;
377377
font-weight: 600;
378-
color: #3e3e3e;
378+
color: #2f2f2f;
379379
}
380380
.note-content {
381381
line-height: 1.5;

layouts/_default/single.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ <h1>{{ .Title }}</h1>
1313
</p>
1414
</section>
1515

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

0 commit comments

Comments
 (0)