aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2020-04-18 17:25:39 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2020-04-18 17:25:39 +0200
commit8fbeec66ba66c8030ce46d6d38ac16f50b9d1fc6 (patch)
tree1922ef68c4007eac531802ae88d569c0b5f5ce8a
parent2ea473d3bd2d8bd8323c31f2355b5d427852e164 (diff)
downloadsite-8fbeec66ba66c8030ce46d6d38ac16f50b9d1fc6.tar.gz
site-8fbeec66ba66c8030ce46d6d38ac16f50b9d1fc6.zip
Fix title
-rw-r--r--src/Association/AG2.md3
-rw-r--r--src/_markdown.pug5
2 files changed, 4 insertions, 4 deletions
diff --git a/src/Association/AG2.md b/src/Association/AG2.md
index 4a27429..cc8fbc4 100644
--- a/src/Association/AG2.md
+++ b/src/Association/AG2.md
@@ -1,6 +1,3 @@
-AG2
-===
-
Présent : Quentin, Alex, Maximilien, Vincent
Remote : Simon
Invité : Tom
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