From 327388bfbf9e5d1c3c6cbd858e9be81762e0567f Mon Sep 17 00:00:00 2001 From: Zachary Flower Date: Sat, 20 Jan 2024 10:12:50 -0700 Subject: [PATCH] add rss feed to header, tweak css a bit --- _includes/header.html | 24 +++++++++++------ _sass/base.scss | 62 +++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 76 insertions(+), 10 deletions(-) diff --git a/_includes/header.html b/_includes/header.html index 8d64c48..17e0b0f 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -2,13 +2,21 @@

- {{ site.title | escape }} - {%- for path in page_paths -%} - {%- assign my_page = site.pages | where: "path", path | first -%} - {%- if my_page.title -%} - {{ my_page.title | escape }} - {%- endif -%} - {%- endfor -%} - +
diff --git a/_sass/base.scss b/_sass/base.scss index 747523b..f001f86 100644 --- a/_sass/base.scss +++ b/_sass/base.scss @@ -12,6 +12,8 @@ $container-max-width: 1024px !default; :root { --link-color: green; + --text-color: #333333; + --header-color: #000000; --code-color-1: #aaaaaa; --code-color-2: #ffffcc; --code-color-3: #F00000; @@ -58,9 +60,46 @@ h5, h6 { font-size: $base-font-size; margin: 0px; - margin-top: 1rem; + margin-top: 1.5rem; + margin-bottom: 1rem; font-weight: bold; - color: var(--text-color); + color: var(--header-color); +} + +h1 { + &:before { + content: "# "; + } +} + +h2 { + &:before { + content: "## "; + } +} + +h3 { + &:before { + content: "### "; + } +} + +h4 { + &:before { + content: "#### "; + } +} + +h5 { + &:before { + content: "##### "; + } +} + +h6 { + &:before { + content: "###### "; + } } blockquote { @@ -115,6 +154,25 @@ iframe { margin: 3rem auto; } +header { + ul { + list-style: none; + + li { + display: inline-block; + margin-right: 1rem; + + &:last-child { + margin-right: 0; + } + + &.float-right { + float: right; + } + } + } +} + /** * Layout */