Skip to content

Commit f644ccc

Browse files
committed
fix bugs
1 parent 0bec14d commit f644ccc

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

docs/build-your-own-theme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -355,13 +355,13 @@ For the `new-section-slide` method, it's the same, but the only thing to note is
355355
touying-slide(self: self, body)
356356
})
357357
358-
#let new-section-slide(self: none, section) = touying-slide-wrapper(self => {
359-
let body = {
358+
#let new-section-slide(self: none, body) = touying-slide-wrapper(self => {
359+
let main-body = {
360360
set align(center + horizon)
361361
set text(size: 2em, fill: self.colors.primary, weight: "bold", style: "italic")
362-
section
362+
utils.display-current-heading(level: 1)
363363
}
364-
touying-slide(self: self, body)
364+
touying-slide(self: self, main-body)
365365
})
366366
367367
#let focus-slide(body) = touying-slide-wrapper(self => {

i18n/zh/docusaurus-plugin-content-docs/current/build-your-own-theme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -362,13 +362,13 @@ A slide with a title and an *important* information.
362362
touying-slide(self: self, body)
363363
})
364364
365-
#let new-section-slide(self: none, section) = touying-slide-wrapper(self => {
366-
let body = {
365+
#let new-section-slide(self: none, body) = touying-slide-wrapper(self => {
366+
let main-body = {
367367
set align(center + horizon)
368368
set text(size: 2em, fill: self.colors.primary, weight: "bold", style: "italic")
369-
section
369+
utils.display-current-heading(level: 1)
370370
}
371-
touying-slide(self: self, body)
371+
touying-slide(self: self, main-body)
372372
})
373373
374374
#let focus-slide(body) = touying-slide-wrapper(self => {

i18n/zh/docusaurus-plugin-content-docs/version-0.5.x/build-your-own-theme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -362,13 +362,13 @@ A slide with a title and an *important* information.
362362
touying-slide(self: self, body)
363363
})
364364
365-
#let new-section-slide(self: none, section) = touying-slide-wrapper(self => {
366-
let body = {
365+
#let new-section-slide(self: none, body) = touying-slide-wrapper(self => {
366+
let main-body = {
367367
set align(center + horizon)
368368
set text(size: 2em, fill: self.colors.primary, weight: "bold", style: "italic")
369-
section
369+
utils.display-current-heading(level: 1)
370370
}
371-
touying-slide(self: self, body)
371+
touying-slide(self: self, main-body)
372372
})
373373
374374
#let focus-slide(body) = touying-slide-wrapper(self => {

versioned_docs/version-0.5.x/build-your-own-theme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -355,13 +355,13 @@ For the `new-section-slide` method, it's the same, but the only thing to note is
355355
touying-slide(self: self, body)
356356
})
357357
358-
#let new-section-slide(self: none, section) = touying-slide-wrapper(self => {
359-
let body = {
358+
#let new-section-slide(self: none, body) = touying-slide-wrapper(self => {
359+
let main-body = {
360360
set align(center + horizon)
361361
set text(size: 2em, fill: self.colors.primary, weight: "bold", style: "italic")
362-
section
362+
utils.display-current-heading(level: 1)
363363
}
364-
touying-slide(self: self, body)
364+
touying-slide(self: self, main-body)
365365
})
366366
367367
#let focus-slide(body) = touying-slide-wrapper(self => {

0 commit comments

Comments
 (0)