Skip to content

Commit

Permalink
#524: Disable numbered plugin for non-article pages
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-shpak committed Dec 4, 2023
1 parent 14e14f6 commit 118997f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions 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};
Expand All @@ -19,7 +19,7 @@ $endLevel: 6;
}
}

.book-toc nav ul {
.book-toc nav#TableOfContents ul {
li {
counter-increment: item;

Expand Down
2 changes: 1 addition & 1 deletion layouts/_default/baseof.html
Expand Up @@ -73,7 +73,7 @@
{{ end }}

{{ define "main" }}
<article class="markdown">
<article class="markdown book-article">
{{- .Content -}}
</article>
{{ end }}
Expand Down
2 changes: 1 addition & 1 deletion 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>
Expand Down
2 changes: 1 addition & 1 deletion 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 }}
Expand Down

0 comments on commit 118997f

Please sign in to comment.