Commit e3b7d3cc authored by Denis Salem's avatar Denis Salem
Browse files

Done with chapters engine

parent a0d85002
......@@ -15,7 +15,7 @@ code_highlight_css_override: true
markup_language: 'Markdown'
path:
category_directory_name: '{category}'
chapter_directory_name: '{chapter_aname}'
chapter_directory_name: '{chapter_name}'
dates_directory_name: '%m-%Y'
entry_file_name: index.html
ftp: Chemin absolu de votre blog sur l'hôte FTP.
......@@ -25,7 +25,7 @@ path:
dates_sub_folders: ""
categories_sub_folders: ""
entries_sub_folders: ""
chapters_sub_folders: "chapters/{chapter_name}"
chapters_sub_folders: ""
reverse_thread_order: false
feed_lenght: 5
text_editor: gvim
......
authors: 'Denis Salem'
categories: ''
chapter: 3
tags: ''
title: Tutoriels
---VENC-BEGIN-PREVIEW---
---VENC-END-PREVIEW---
......@@ -33,7 +33,7 @@ class VenCServer(http.server.CGIHTTPRequestHandler):
super().__init__(request, client_address, server)
def do_GET(self):
self.path = urllib.parse.unquote(self.path, encoding=blog_configuration["path_encoding"])
self.path = urllib.parse.unquote(self.path, encoding=blog_configuration["path_encoding"])
super().do_GET()
def serv_blog(argv=list()):
......
......@@ -400,7 +400,7 @@ class DataStore:
for sub_chapter in top:
try:
path = (chapter_sub_folder+'/'+chapter_folder_name).format(**{
path = ((chapter_sub_folder+'/' if chapter_sub_folder != '' else '')+chapter_folder_name).format(**{
"chapter_name" : sub_chapter.entry.title,
"chapter_index" : sub_chapter.index
})
......@@ -595,7 +595,7 @@ class DataStore:
return self.html_blog_dates[key]
def get_root_page(self, argv):
return ".:GetRelativeOrigin:./"+self.blog_configuration["path"]["index_file_name"].format(**{"page_number":''})
return ".:GetRelativeOrigin:."+self.blog_configuration["path"]["index_file_name"].format(**{"page_number":''})
def build_html_categories_tree(self, opening_node, opening_branch, closing_branch, closing_node, tree):
output_string = opening_node
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment