From b48d98b067ac7922b819304982d88987cd3c41a3 Mon Sep 17 00:00:00 2001 From: MultiMote Date: Sat, 1 Jun 2024 23:57:11 +0300 Subject: [PATCH] =?UTF-8?q?=D0=92=D1=8B=D0=B2=D0=BE=D0=B4=20=D1=81=D0=BE?= =?UTF-8?q?=D0=B4=D0=B5=D1=80=D0=B6=D0=B0=D0=BD=D0=B8=D1=8F=20=D0=B2=20?= =?UTF-8?q?=D0=B1=D0=BE=D0=BA=D0=BE=D0=B2=D0=BE=D0=B9=20=D0=BF=D0=B0=D0=BD?= =?UTF-8?q?=D0=B5=D0=BB=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontmatter.json | 12 ++++++++++- themes/mmotium/assets/css/style.scss | 13 +++++++++++- themes/mmotium/layouts/partials/sidebar.html | 22 +++++++++++++++----- 3 files changed, 40 insertions(+), 7 deletions(-) diff --git a/frontmatter.json b/frontmatter.json index 1e5e51e..9d66969 100644 --- a/frontmatter.json +++ b/frontmatter.json @@ -43,6 +43,16 @@ "title": "Categories", "name": "categories", "type": "categories" + }, + { + "title": "featured_image", + "name": "Thumbnail", + "type": "image" + }, + { + "title": "lastmod", + "name": "Last modified", + "type": "datetime" } ] } @@ -54,4 +64,4 @@ "filePrefix": "" } ] -} +} \ No newline at end of file diff --git a/themes/mmotium/assets/css/style.scss b/themes/mmotium/assets/css/style.scss index c1cae1d..8501b14 100644 --- a/themes/mmotium/assets/css/style.scss +++ b/themes/mmotium/assets/css/style.scss @@ -203,7 +203,18 @@ section.posts { margin-bottom: 16px; } - ul { + .toc { + ul { + list-style-position: inside; + margin: 0; + padding-left: 0; + } + ul ul { + padding-left: 1em; + } + } + + .categories ul { list-style-type: "- "; list-style-position: inside; padding: 0; diff --git a/themes/mmotium/layouts/partials/sidebar.html b/themes/mmotium/layouts/partials/sidebar.html index 0ee6cd3..8288e0e 100644 --- a/themes/mmotium/layouts/partials/sidebar.html +++ b/themes/mmotium/layouts/partials/sidebar.html @@ -10,13 +10,25 @@ Согласен, лучше не стало. Но всё ещё впереди.

+ + {{ if strings.Contains .TableOfContents "li" }} +
+

Содержание

+
+ {{ .TableOfContents }} +
+
+ {{ end }} +

Категории

- +
+
    + {{ range .Site.Taxonomies.categories }} +
  • {{ .Page.Title }} {{/* .Count */}}
  • + {{ end }} +
+