From 118997fa920e48acee7689fcf0cbb29d1b97ecb1 Mon Sep 17 00:00:00 2001
From: Alex Shpak <alex-shpak@users.noreply.github.com>
Date: Tue, 5 Dec 2023 00:33:41 +0100
Subject: [PATCH] #524: Disable numbered plugin for non-article pages

---
 assets/plugins/_numbered.scss | 4 ++--
 layouts/_default/baseof.html  | 2 +-
 layouts/posts/single.html     | 2 +-
 layouts/taxonomy/list.html    | 2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/assets/plugins/_numbered.scss b/assets/plugins/_numbered.scss
index 56cda5a..dc9b04b 100644
--- a/assets/plugins/_numbered.scss
+++ b/assets/plugins/_numbered.scss
@@ -1,7 +1,7 @@
 $startLevel: 1;
 $endLevel: 6;
 
-.book-page .markdown {
+.book-page .markdown.book-article {
   @for $currentLevel from $startLevel through $endLevel {
     > h#{$currentLevel} {
       counter-increment: h#{$currentLevel};
@@ -19,7 +19,7 @@ $endLevel: 6;
   }
 }
 
-.book-toc nav ul {
+.book-toc nav#TableOfContents ul {
   li {
     counter-increment: item;
 
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 49a3121..a6c4c07 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -73,7 +73,7 @@
 {{ end }}
 
 {{ define "main" }}
-  <article class="markdown">
+  <article class="markdown book-article">
     {{- .Content -}}
   </article>
 {{ end }}
diff --git a/layouts/posts/single.html b/layouts/posts/single.html
index 301ca1e..495c036 100644
--- a/layouts/posts/single.html
+++ b/layouts/posts/single.html
@@ -1,5 +1,5 @@
 {{ define "main" }}
-<article class="markdown">
+<article class="markdown book-post">
   <h1>
     <a href="{{ .RelPermalink }}">{{ partial "docs/title.html" . }}</a>
   </h1>
diff --git a/layouts/taxonomy/list.html b/layouts/taxonomy/list.html
index 31ecd90..1d3e763 100644
--- a/layouts/taxonomy/list.html
+++ b/layouts/taxonomy/list.html
@@ -1,5 +1,5 @@
 {{ define "main" }}
-<article class="markdown">
+<article class="markdown book-post">
   <h1>{{ .Title | title }}</h1>
   {{ $taxonomies := index .Site.Taxonomies .Page.Type }}
   {{ range $taxonomies }}
-- 
GitLab