From b2a763556de432dcc1c6e944945a4006e41adb85 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Sat, 17 Apr 2021 01:09:44 -0700 Subject: [PATCH] Use the 'modules' category instead of blog. --- assets/scss/style.scss | 20 +++++++++++++--- assets/scss/variables.scss | 6 ++--- layouts/blog/single.html | 46 ------------------------------------ layouts/index.html | 4 ++-- layouts/modules/single.html | 27 +++++++++++++++++++++ layouts/partials/head.html | 5 ++-- layouts/partials/header.html | 14 +---------- layouts/partials/post.html | 4 ++-- layouts/shortcodes/todo.html | 4 ++-- 9 files changed, 57 insertions(+), 73 deletions(-) delete mode 100644 layouts/blog/single.html create mode 100644 layouts/modules/single.html diff --git a/assets/scss/style.scss b/assets/scss/style.scss index 7ffe9e7..b151ca7 100755 --- a/assets/scss/style.scss +++ b/assets/scss/style.scss @@ -17,7 +17,7 @@ body { h1, h2, h3, h4, h5, h6 { margin-bottom: .1rem; margin-top: .5rem; - font-family: $font-heading; + font-family: $font-body; font-weight: normal; text-align: center; @@ -30,6 +30,10 @@ h1, h2, h3, h4, h5, h6 { } } +h1 { + font-family: $font-heading; +} + .container { position: relative; margin: auto; @@ -93,6 +97,10 @@ nav { .post-subscript { color: #8f8f8f; text-align: center; + + p { + margin: 0; + } } .post-content { @@ -167,6 +175,8 @@ hr.header-divider { height: 0.3rem; border: none; border-radius: 0.15rem; + margin-top: 1rem; + margin-bottom: 1rem; } hr.footer-divider { @@ -199,7 +209,7 @@ ul.post-list { a.post-title { border-bottom: none; font-size: 1.4rem; - font-family: $font-heading; + font-family: $font-body; text-align: center; display: block; } @@ -208,6 +218,10 @@ ul.post-list { text-align: center; margin-bottom: 0.6rem; } + + p.post-preview { + text-align: center; + } } .katex-html { @@ -260,5 +274,5 @@ figure { stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; - fill: currentColor; + fill: none; } diff --git a/assets/scss/variables.scss b/assets/scss/variables.scss index 3f32fee..f7e46b0 100644 --- a/assets/scss/variables.scss +++ b/assets/scss/variables.scss @@ -3,12 +3,12 @@ $container-min-padding: 1rem; $container-width-threshold: $container-width + 2 * $container-min-padding; $standard-border-width: .075rem; -$primary-color: #36e281; +$primary-color: #9774e8; $border-color: #bfbfbf; -$code-color: #f0f0f0; +$code-color: #eee8d5; $code-border-color: darken($code-color, 10%); -$font-heading: "Lora", serif; +$font-heading: "Indie Flower", serif; $font-body: "Raleway", serif; $font-code: "Inconsolata", monospace; diff --git a/layouts/blog/single.html b/layouts/blog/single.html deleted file mode 100644 index e36308b..0000000 --- a/layouts/blog/single.html +++ /dev/null @@ -1,46 +0,0 @@ -{{ define "main" }} -

{{ .Title }}

-
-

- {{ range .Params.tags }} - {{ . }} - {{ end }} -

-

Posted on {{ .Date.Format "January 2, 2006" }}.

-
- -
- {{ if not (eq .TableOfContents "") }} -
-
- Table of Contents - {{ .TableOfContents }} -
-
- {{ end }} - - {{ if .Draft }} -
- Warning! This post is a draft. At best, it may contain grammar mistakes; - at worst, it can include significant errors and bugs. Please - use your best judgement! -
- {{ end }} - - {{ .Content }} -
-{{ end }} -{{ define "after" }} - - -{{ end }} diff --git a/layouts/index.html b/layouts/index.html index ab87c9f..62c4f89 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,9 +1,9 @@ {{ define "main" }} {{ .Content }} -Recent posts: +Available modules: diff --git a/layouts/modules/single.html b/layouts/modules/single.html new file mode 100644 index 0000000..eba5659 --- /dev/null +++ b/layouts/modules/single.html @@ -0,0 +1,27 @@ +{{ define "main" }} +

{{ .Title }}

+
+

Last updated on {{ .Date.Format "January 2, 2006" }}.

+
+ +
+ {{ if not (eq .TableOfContents "") }} +
+
+ Table of Contents + {{ .TableOfContents }} +
+
+ {{ end }} + + {{ if .Draft }} +
+ Warning! This post is a draft. At best, it may contain grammar mistakes; + at worst, it can include significant errors and bugs. Please + use your best judgement! +
+ {{ end }} + + {{ .Content }} +
+{{ end }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 999f1e0..ee34c1d 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -6,7 +6,7 @@ {{ end }} - + {{ $style := resources.Get "scss/style.scss" | resources.ToCSS | resources.Minify }} {{ $sidenotes := resources.Get "scss/sidenotes.scss" | resources.ToCSS | resources.Minify }} @@ -17,7 +17,8 @@ - + + {{ .Title }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index abea395..1d6ed61 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,15 +1,3 @@
-

Daniel's Blog

+

Maypop

- diff --git a/layouts/partials/post.html b/layouts/partials/post.html index 86a9aeb..39b04d1 100644 --- a/layouts/partials/post.html +++ b/layouts/partials/post.html @@ -1,5 +1,5 @@
  • {{ if .Params.favorite }}{{ partial "icon.html" "star" }}{{ end }} {{ .Title }} -

    {{ .WordCount }} words, about {{ .ReadingTime }} minutes to read.

    -

    {{ .Summary }} . . .

    + +

    {{ .Summary }}

  • diff --git a/layouts/shortcodes/todo.html b/layouts/shortcodes/todo.html index b8e2537..bc822a1 100644 --- a/layouts/shortcodes/todo.html +++ b/layouts/shortcodes/todo.html @@ -1,3 +1,3 @@ -
    - TODO: {{ .Inner }} +
    + {{ partial "icon.html" "alert-triangle" }}TODO: {{ .Inner }}