aboutsummaryrefslogtreecommitdiff
path: root/src/_markdown.pug
diff options
context:
space:
mode:
Diffstat (limited to 'src/_markdown.pug')
-rw-r--r--src/_markdown.pug5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/_markdown.pug b/src/_markdown.pug
index b92c4e9..9771aeb 100644
--- a/src/_markdown.pug
+++ b/src/_markdown.pug
@@ -1,7 +1,10 @@
extends ./_layout.pug
prepend root
- - title = element.nice_path[element.nice_path.length - 1]
+ - if (element.tags.includes('is_index'))
+ - title = element.nice_path[element.nice_path.length - 1]
+ - else
+ - title = element.nice_name
block content
!= markdown