diff --git a/exampleSite/content/slides/example/index.md b/exampleSite/content/slides/example/index.md index b5a4425a..d3dc3842 100644 --- a/exampleSite/content/slides/example/index.md +++ b/exampleSite/content/slides/example/index.md @@ -13,9 +13,9 @@ slides: highlight_style: dracula --- -# Welcome to Slides +# Create slides in Markdown with Academic -[Academic](https://sourcethemes.com/academic/) +[Academic](https://sourcethemes.com/academic/) | [Documentation](https://sourcethemes.com/academic/docs/managing-content/#create-slides) --- @@ -161,6 +161,6 @@ Create `assets/css/reveal_custom.css` with: # Questions? -[Ask](https://discourse.gohugo.io) +[Ask](https://spectrum.chat/academic) -[Documentation](https://sourcethemes.com/academic/docs/) +[Documentation](https://sourcethemes.com/academic/docs/managing-content/#create-slides) diff --git a/layouts/partials/slides.html b/layouts/partials/slides.html index 0cdfd9a3..4f87c5f8 100644 --- a/layouts/partials/slides.html +++ b/layouts/partials/slides.html @@ -5,10 +5,13 @@ {{ if ne (len .Content) 0 }} {{/* Must remove `
` generated by Blackfriday footnotes as conflicts with slide delimiter. */}} - {{ $content := replace .Content "
\n\n
" "
" }} + {{/* Commented out workaround as Blackfriday has been superseded by Goldmark in Hugo 0.60. */}} + {{/* TODO: reintroduce a similar workaround if Goldmark requires it. */}} + {{/* $content := replace .Content "
\n\n
" "
" */}} + {{ $content := .Content }}{{/* For Goldmark. */}} - {{/* Let `
` delimit slides. */}} - {{ range (split $content "
") }} + {{/* Let `---` delimit slides. In Goldmark, that is `
`. Alternatively, for Blackfriday, use `
`. */}} + {{ range (split $content "
") }} {{/* Each `
` defines a new slide. */}} {{/* Only begin new slide `
` if not already added by custom `slide` shortcode. */}} diff --git a/layouts/slides/baseof.html b/layouts/slides/baseof.html index 2e2d57ec..cbe384c9 100644 --- a/layouts/slides/baseof.html +++ b/layouts/slides/baseof.html @@ -43,18 +43,22 @@ {{ block "main" . }}{{ end }} -