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" }}
-
-
- Liked this article? Have any questions or comments?
- Please don't hesitate to reach out to me at
- danila.fedorin@gmail.com ! I love receiving emails from readers, and I'm always happy
- to provide any additional clarification or assistance.
- I'm also currently looking for Computer Science internships for the summer
- of 2021. Take a look at my resume ,
- GitHub profile ,
- and my favorite articles from this blog
- to learn more about me!
-
-{{ 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:
- {{ range first 10 (where (where .Site.Pages.ByDate.Reverse "Section" "blog") ".Kind" "!=" "section") }}
+ {{ range first 10 (where (where .Site.Pages.ByDate.Reverse "Section" "modules") ".Kind" "!=" "section") }}
{{ partial "post.html" . }}
{{ end }}
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 @@
-
-
-
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 }}