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 }} +

Категории

- +
+ +