aboutsummaryrefslogtreecommitdiff
path: root/ssg
diff options
context:
space:
mode:
authorMatias Linares <matiaslina@openmailbox.org>2016-02-21 23:15:24 -0300
committerMatias Linares <matiaslina@openmailbox.org>2016-02-21 23:15:24 -0300
commit5a7569fe91f6b442ef5f50dc3f82764eca2aa39c (patch)
tree5f24019422ff9ba8610880a7a22ad92453de2b76 /ssg
parent3180fbb3712c454c50df4f5f7713fcbff73a7546 (diff)
downloadssg-5a7569fe91f6b442ef5f50dc3f82764eca2aa39c.tar.gz
Add a slash before the directories.
Diffstat (limited to 'ssg')
-rwxr-xr-xssg2
1 files changed, 2 insertions, 0 deletions
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) {