diff --git a/src/MiniDocs/LePage.extension.st b/src/MiniDocs/LePage.extension.st index 0703592..ac0d9c6 100644 --- a/src/MiniDocs/LePage.extension.st +++ b/src/MiniDocs/LePage.extension.st @@ -124,8 +124,15 @@ LePage >> exportMetadataToHead: markdeep [ { #category : #'*MiniDocs' } LePage >> exportedFileName [ - | sanitized | - sanitized := self title asDashedLowercase romanizeAccents copyWithoutAll: #($/ $: $🢒). + | sanitized titleWords shortTitle | + titleWords := self title splitOn: Character space. + (titleWords size > 11) + ifTrue: [ + titleWords := titleWords copyFrom: 1 to: 3. + shortTitle := titleWords joinUsing: Character space. + ] + ifFalse: [shortTitle := self title]. + sanitized := shortTitle asDashedLowercase romanizeAccents copyWithoutAll: #($/ $: $🢒 $,). ^ sanitized , '--' , (self uidString copyFrom: 1 to: 5) ]