File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -32,11 +32,19 @@ def process_dir(top_dir):
32
32
print ('cannot create file %s %s' % (index_path , e ))
33
33
return
34
34
35
+ path_top_dir_parents = path_top_dir .parents
36
+ path_format = "/ <a style='text-decoration: underline;' href='https://dorianb.net/talks/'>Talks</a> "
37
+ for parent in reversed (path_top_dir_parents ):
38
+ if parent .name != "" :
39
+ path_format += f"/<a style='text-decoration: underline;' href='https://dorianb.net/talks/{ parent } '>{ parent .name } </a>"
40
+ path_format += f"/<a style='text-decoration: underline;' href='https://dorianb.net/talks/{ path_top_dir } '>{ path_top_dir .name } </a>"
41
+
35
42
index_file .write ("""<!DOCTYPE html>
36
43
<html>
37
44
<head>
38
45
<meta charset="utf-8">
39
46
<meta name="viewport" content="width=device-width, initial-scale=1.0">
47
+ <title>Dorian B. Talks</title>
40
48
<style>
41
49
* { padding: 0; margin: 0; }
42
50
body {
@@ -397,7 +405,7 @@ def process_dir(top_dir):
397
405
398
406
<header>
399
407
<h1>"""
400
- f'{ path_top_dir . name } '
408
+ f'{ path_format } '
401
409
"""</h1>
402
410
</header>
403
411
<main>
You can’t perform that action at this time.
0 commit comments