From 5a7569fe91f6b442ef5f50dc3f82764eca2aa39c Mon Sep 17 00:00:00 2001 From: Matias Linares Date: Sun, 21 Feb 2016 23:15:24 -0300 Subject: Add a slash before the directories. --- ssg | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ssg') diff --git a/ssg b/ssg index 8509b7b..a81678c 100755 --- a/ssg +++ b/ssg @@ -97,6 +97,8 @@ sub generate_link { my $str = $file->basename; $str =~ s/\.md$//g; + $str = "$str/" if $file->is_dir(); + # Higlight? my $hl = ""; if($options->{hl} eq 1) { -- cgit v1.2.3-70-g09d2