mirror of
https://github.com/alex-shpak/hugo-book.git
synced 2025-04-10 07:45:43 +00:00
Compare commits
3 Commits
0ccd141f1f
...
5a0571051b
Author | SHA1 | Date | |
---|---|---|---|
|
5a0571051b | ||
|
118997fa92 | ||
|
0f50648e48 |
@ -1,7 +1,7 @@
|
|||||||
$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;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.book-toc nav ul {
|
.book-toc nav#TableOfContents ul {
|
||||||
li {
|
li {
|
||||||
counter-increment: item;
|
counter-increment: item;
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
{{ $searchConfig := i18n "bookSearchConfig" | default "{}" }}
|
{{ $searchConfig := i18n "bookSearchConfig" | default "{}" }}
|
||||||
|
|
||||||
(function () {
|
(function () {
|
||||||
const searchDataURL = '{{ $searchData.RelPermalink }}';
|
const searchDataURL = '{{ $searchData.Permalink }}';
|
||||||
const indexConfig = Object.assign({{ $searchConfig }}, {
|
const indexConfig = Object.assign({{ $searchConfig }}, {
|
||||||
doc: {
|
doc: {
|
||||||
id: 'id',
|
id: 'id',
|
||||||
|
@ -73,7 +73,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<article class="markdown">
|
<article class="markdown book-article">
|
||||||
{{- .Content -}}
|
{{- .Content -}}
|
||||||
</article>
|
</article>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{{ 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>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{{ 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 }}
|
||||||
|
Loading…
Reference in New Issue
Block a user