typesetting olivain porry

This commit is contained in:
Julie Blanc 2026-04-11 18:57:03 +02:00
parent eea67d2c7c
commit fc85403e3a
56 changed files with 141 additions and 43 deletions

View file

@ -5,7 +5,7 @@ $crop = $block->crop()->isTrue();
$ratio = $block->ratio()->or('auto');
$GLOBALS['figCount'] = ($GLOBALS['figCount'] ?? 0) + 1;
$figId = 'fig-' . Str::slug($block->parent()->author()) . '-' . $GLOBALS['figCount'];
$figId = 'fig-' . Str::slug($block->parent()?->author() ?? '') . '-' . $GLOBALS['figCount'];
?>
<figure id="<?= $figId ?>"<?= Html::attr(['data-ratio' => $ratio, 'data-crop' => $crop], null, ' ') ?>>
<ul>