Skip to content

Commit 088815c

Browse files
committed
Fix content class generator syntax error
1 parent c999424 commit 088815c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

htmlify.p6

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,10 @@ sub header-html($current-selection, $pod-path) is cached {
125125

126126
$header.subst('MENU', $menu-items ~ $sub-menu-items)
127127
.subst('EDITURL', $edit-url)
128-
.subst('CONTENT_CLASS',
128+
.subst: 'CONTENT_CLASS',
129129
'content_' ~ ($pod-path
130-
?? $pod-path.subst(/\.pod6$/, '').subst(/\W/, '_')
131-
!! 'fragment')
132-
:g);
130+
?? $pod-path.subst(/\.pod6$/, '').subst(/\W/, '_', :g)
131+
!! 'fragment');
133132
}
134133

135134
sub p2h($pod, $selection = 'nothing selected', :$pod-path = Nil) {

0 commit comments

Comments
 (0)