Skip to content

Commit

Permalink
Correction de l’URL pour éviter index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbgk committed Sep 27, 2023
1 parent f79a300 commit 4a0d0b1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ <h2 class="subtitle"><a href="/blog/">le blog</a></h2>
<div class="main">
<article class="blog-post">
<h2>
<a href="./2023/petit-panorama-des-pratiques-de-remuneration-en-horizontalite/index.html">Petit panorama des pratiques de rémunération en horizontalité</a>
<a href="./2023/petit-panorama-des-pratiques-de-remuneration-en-horizontalite/">Petit panorama des pratiques de rémunération en horizontalité</a>
</h2>
<aside>
<time datetime="2023-09-25">2023-09-25</time>
Expand Down
2 changes: 1 addition & 1 deletion blog/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ <h2 class="subtitle"><a href="/blog/">le blog</a></h2>
<section>
<article class="blog-post">
<h2>
<a href="./2023/petit-panorama-des-pratiques-de-remuneration-en-horizontalite/index.html">Petit panorama des pratiques de rémunération en horizontalité</a>
<a href="./2023/petit-panorama-des-pratiques-de-remuneration-en-horizontalite/">Petit panorama des pratiques de rémunération en horizontalité</a>
</h2>
<aside>
<time datetime="2023-09-25">2023-09-25</time>
Expand Down
5 changes: 3 additions & 2 deletions generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ def __post_init__(self):
self.date_publication = self.item["date_publication"]
self.year = self.date_publication.year
self.slug = slugify(self.titre)
# Construction de l’URL unique pour ce sujet.
self.url = f"./{self.year}/{self.slug}/index.html"
# Construction de l’URL unique pour cet article.
self.url = f"./{self.year}/{self.slug}/"

def __eq__(self, other):
return self.url == other.url
Expand Down Expand Up @@ -120,5 +120,6 @@ def each_folder_from(source_dir, exclude=None):
continue
yield direntry


if __name__ == "__main__":
minicli.run()

0 comments on commit 4a0d0b1

Please sign in to comment.