Skip to content
Snippets Groups Projects
Commit 118997fa authored by Alex Shpak's avatar Alex Shpak
Browse files

#524: Disable numbered plugin for non-article pages

parent 14e14f60
No related branches found
No related tags found
No related merge requests found
$startLevel: 1; $startLevel: 1;
$endLevel: 6; $endLevel: 6;
.book-page .markdown { .book-page .markdown.book-article {
@for $currentLevel from $startLevel through $endLevel { @for $currentLevel from $startLevel through $endLevel {
> h#{$currentLevel} { > h#{$currentLevel} {
counter-increment: h#{$currentLevel}; counter-increment: h#{$currentLevel};
...@@ -19,7 +19,7 @@ $endLevel: 6; ...@@ -19,7 +19,7 @@ $endLevel: 6;
} }
} }
.book-toc nav ul { .book-toc nav#TableOfContents ul {
li { li {
counter-increment: item; counter-increment: item;
......
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
{{ end }} {{ end }}
{{ define "main" }} {{ define "main" }}
<article class="markdown"> <article class="markdown book-article">
{{- .Content -}} {{- .Content -}}
</article> </article>
{{ end }} {{ end }}
......
{{ define "main" }} {{ define "main" }}
<article class="markdown"> <article class="markdown book-post">
<h1> <h1>
<a href="{{ .RelPermalink }}">{{ partial "docs/title.html" . }}</a> <a href="{{ .RelPermalink }}">{{ partial "docs/title.html" . }}</a>
</h1> </h1>
......
{{ define "main" }} {{ define "main" }}
<article class="markdown"> <article class="markdown book-post">
<h1>{{ .Title | title }}</h1> <h1>{{ .Title | title }}</h1>
{{ $taxonomies := index .Site.Taxonomies .Page.Type }} {{ $taxonomies := index .Site.Taxonomies .Page.Type }}
{{ range $taxonomies }} {{ range $taxonomies }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment