From 8a38408db2b9cdda12e25e86246473fc030a2b42 Mon Sep 17 00:00:00 2001 From: Sam Hadow Date: Sat, 9 Mar 2024 17:24:27 +0100 Subject: [PATCH] article layout --- _layouts/article.html | 37 ++++++++++++++++++++++++++++++ _sass/jekyll-theme-minimalist.scss | 11 ++++++--- 2 files changed, 45 insertions(+), 3 deletions(-) create mode 100644 _layouts/article.html diff --git a/_layouts/article.html b/_layouts/article.html new file mode 100644 index 0000000..846bde0 --- /dev/null +++ b/_layouts/article.html @@ -0,0 +1,37 @@ +{% case site.color-scheme %} + {% when "", nil, false, 0, empty %} + {% assign ColorScheme = "auto" %} + {% else %} + {% assign ColorScheme = site.color-scheme %} +{% endcase %} + + + + + + + + + + + + + + + {% include head-custom.html %} + + +
+
+ + {{ content }} + +



Copyright (c) 2024 Sam Hadow Verbatim copying and redistribution of this entire page are permitted provided this notice is preserved.

+
+
+ {%- include footer.html -%} +
+
+ + + diff --git a/_sass/jekyll-theme-minimalist.scss b/_sass/jekyll-theme-minimalist.scss index 2812aa4..cd1f828 100644 --- a/_sass/jekyll-theme-minimalist.scss +++ b/_sass/jekyll-theme-minimalist.scss @@ -2,6 +2,11 @@ @import "rouge-github"; @import "colors"; +// default variables +$section-width: 610px !default; +$section-float: right !default; +$section-padding-bottom: 30px !default; + body { background-color: var(--clr-bg); padding:50px; @@ -174,9 +179,9 @@ strong { } section { - width: 610px; - float:right; - padding-bottom:30px; + width: $section-width; + float: $section-float; + padding-bottom: $section-padding-bottom; } small {