diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2020-04-18 17:25:39 +0200 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2020-04-18 17:25:39 +0200 |
commit | 8fbeec66ba66c8030ce46d6d38ac16f50b9d1fc6 (patch) | |
tree | 1922ef68c4007eac531802ae88d569c0b5f5ce8a /src/_markdown.pug | |
parent | 2ea473d3bd2d8bd8323c31f2355b5d427852e164 (diff) | |
download | site-8fbeec66ba66c8030ce46d6d38ac16f50b9d1fc6.tar.gz site-8fbeec66ba66c8030ce46d6d38ac16f50b9d1fc6.zip |
Fix title
Diffstat (limited to 'src/_markdown.pug')
-rw-r--r-- | src/_markdown.pug | 5 |
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 |