Skip to content

Commit

Permalink
Change the TOC class name to ox-hugo-toc
Browse files Browse the repository at this point in the history
  • Loading branch information
kaushalmodi committed Nov 10, 2017
1 parent de6e701 commit 1213df6
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions ox-hugo.el
Original file line number Diff line number Diff line change
Expand Up @@ -810,11 +810,11 @@ contents according to the current headline."
;; Hide the bullets if section numbers are present for
;; even one heading.
(concat "<style>\n"
" .ox-hugo ul {\n"
" .ox-hugo-toc ul {\n"
" list-style: none;\n"
" }\n"
"</style>\n"))
"<div class=\"ox-hugo toc\">\n" ;This is a nasty workaround
"<div class=\"ox-hugo-toc toc\">\n" ;This is a nasty workaround
"<div></div>\n" ;till Hugo/Blackfriday support
toc-headline ;wrapping Markdown in HTML div's.
toc-items ;https://github.com/kaushalmodi/ox-hugo/issues/93
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ draft = false
+++

<style>
.ox-hugo ul {
.ox-hugo-toc ul {
list-style: none;
}
</style>
<div class="ox-hugo toc">
<div class="ox-hugo-toc toc">
<div></div>

## Table of Contents
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ tags = ["export-option", "toc"]
draft = false
+++

<div class="ox-hugo toc">
<div class="ox-hugo-toc toc">
<div></div>

## Table of Contents
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ draft = false
+++

<style>
.ox-hugo ul {
.ox-hugo-toc ul {
list-style: none;
}
</style>
<div class="ox-hugo toc">
<div class="ox-hugo-toc toc">
<div></div>

## Table of Contents
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ tags = ["export-option", "toc"]
draft = false
+++

<div class="ox-hugo toc">
<div class="ox-hugo-toc toc">
<div></div>

## Table of Contents
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ draft = false
+++

<style>
.ox-hugo ul {
.ox-hugo-toc ul {
list-style: none;
}
</style>
<div class="ox-hugo toc">
<div class="ox-hugo-toc toc">
<div></div>

## Table of Contents
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ draft = false
+++

<style>
.ox-hugo ul {
.ox-hugo-toc ul {
list-style: none;
}
</style>
<div class="ox-hugo toc">
<div class="ox-hugo-toc toc">
<div></div>

## Table of Contents
Expand Down
2 changes: 1 addition & 1 deletion test/site/content/posts/post-with-toc-keyword-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ tags = ["keyword", "toc"]
draft = false
+++

<div class="ox-hugo toc">
<div class="ox-hugo-toc toc">
<div></div>

## Table of Contents
Expand Down
2 changes: 1 addition & 1 deletion test/site/content/posts/post-with-toc-keyword-6.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ tags = ["keyword", "toc"]
draft = false
+++

<div class="ox-hugo toc">
<div class="ox-hugo-toc toc">
<div></div>

## Table of Contents
Expand Down

0 comments on commit 1213df6

Please sign in to comment.