Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/cntrump/hugo-notepadium.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvvveiii <cntrump@gmail.com>2019-12-21 03:56:49 +0300
committervvveiii <cntrump@gmail.com>2019-12-21 03:56:49 +0300
commit5f95c89297ab9b9fd905c704c34842b21da2083a (patch)
treea30be1cb523ece36c3c7a37bc40ef7a0ba8565a5
parent226cae83a1be86477573af2695b4fd907c8511a4 (diff)
support justify text-align for articlev1.6.3
-rw-r--r--archetypes/default.md1
-rw-r--r--assets/css/style.css6
-rw-r--r--layouts/_default/single.html2
3 files changed, 5 insertions, 4 deletions
diff --git a/archetypes/default.md b/archetypes/default.md
index 5fdb451..6d44f3c 100644
--- a/archetypes/default.md
+++ b/archetypes/default.md
@@ -6,6 +6,7 @@ categories = []
imgs = []
toc = true
comments = false
+justify = false # text-align: justify;
license = "" # CC License
draft = true
+++
diff --git a/assets/css/style.css b/assets/css/style.css
index a25b49e..d2914da 100644
--- a/assets/css/style.css
+++ b/assets/css/style.css
@@ -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;
@@ -375,7 +375,7 @@ acronym {
.note-title {
font-size: 18px;
font-weight: 600;
- color: #3e3e3e;
+ color: #2f2f2f;
}
.note-content {
line-height: 1.5;
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index b64cb91..079cc35 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -13,7 +13,7 @@
</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>