Releases: oddbird/eleventy-plugin-slide-deck
Releases · oddbird/eleventy-plugin-slide-deck
Release list
Markdown control and layout fixes
- New: optional
markdownFunctions.block&markdownFunctions.inline
configuration options. This allows you to use a custom markdown parser
for rendering slides (beyond setting basicmarkdownItoptions). - Breaking: rename slide markdown filters
slideMDownBlock()toslideMarkdownBlock()&
slideMDownInline()toslideMarkdownInline()for clarity. - Breaking: Update dependencies
- New: Show progress bar in speaker view
- Fix: Maintain slide aspect ratios in portrait mode slideshow view
- Fix: Remove extra wrapper elements on some slide types
0.3.0
- Breaking: Image slides use
slide.creditrather thanslide.cite
for displaying photo credit. - Breaking: Remove new pen templates and
pen: newbehavior,
since the use-case is simple to handle with known pens. - Breaking:
getKnown()global function is removed in favor ofbuildSlides() - Fix bug where
<pen-slide>and<demo-slide>
now extend<embed-slide>directly,
including necessary styles. - Add
slideDeckcollection (name can be configured). - Pre-build slide data into
$data.slideDeck
with known slides/series references resolved,
and slide layout determined (when not provided).
This can be configured with an additional build function. - Pre-build cited resources and CodePen demos into
$data.slideResources.citeand$data.slideResources.pens.
Both are filtered to include unique links,
and return an array of inline markdown strings. - Support explicit slide layouts with
slide.layoutproperty. - Support series references with
slide.seriesproperty
(similar toslide.knownbut for referencing multiple slides). - Add
<render-slide>component for rendering slide data
with a built-in layout. - Simplify
<pen-slide>to remove extra (never-documented) features,
and add support for CodePen 2.0 pens. - All slide types accept a markdown
slide.citeproperty. - Slides that have
slide.source,slide.name, orslide.url
will generate defaultslide.citedata
if not provided explicitly. - Quote slides will use either
slide.imgorslide.avatardata
for rendering an avatar next to the quote. - Add
<source-slide>to display a resource with optional avatar/image.
Since source information is allowed on all slide layouts,
this is only the default when no other data is provided. - Add
<error-slide>to stop build failures
when a slide component is rendered withoutslidedata,
and to render a json string when the data isn't recognized. - Default slide deck theme supports both light and dark modes out of the box,
usinglight-dark()so that control is left to the page.
Configuration Options…
collectionNamechanges the name of theslideDeckcollection,
including every page withslidesdata.buildFunction(when provided)
will be called on each slide during the build process.
Use this to set additional layout types
or make other slide-data alterations.known.slides(defaultknownSlides)
andknown.series(defaultknownSeries)
establish where to look for slide and series source data.
Provided filters…
- Remove
placeHolder()(useslideImg()without a path). - Add
buildSlides()for building out slide decks from any slide data. - Change
slideStyles()so thatcolor,background, andmode
are always allowed.
v0.2.0
What's Changed
- Add default theme by @dvdherron in #2
- Update docs by @jamesnw in #1
New Contributors
- @dvdherron made their first contribution in #2
- @jamesnw made their first contribution in #1
Full Changelog: v0.1.0...v0.2.0
Initial draft
Initial features for testing