diff --git a/build.py b/build.py index 9f7ed49..fe749ca 100644 --- a/build.py +++ b/build.py @@ -132,7 +132,7 @@ sheets: ["/static/highlight.css"]

{input['title']}

{input['date']}

-backpy{{{{ ' | ' if minimal else ' ' }}}}raw +backpy{{{{ ' | ' if minimal else ' ' }}}}raw

{format_tags(input['tags'])}


{html} @@ -151,9 +151,11 @@ def index_dir(dir): else: f = reversed(sorted([p for p in dir.glob('*') if not p.name.startswith('.')], key=os.path.getmtime)) def href(x): + if x.is_dir(): + return f'{x.name}/' if x.suffix in ['.md', '.html']: - return x.with_suffix('') - return x + return x.with_suffix('').name + return x.name def title(x): if x.suffix in ['.md', '.html']: return frontmatter.load(x).metadata['title'] @@ -164,9 +166,9 @@ title: '{dir}'

{dir}

-back +back
''' diff --git a/pages/index.html b/pages/index.html index c2a9fbb..6f87761 100644 --- a/pages/index.html +++ b/pages/index.html @@ -5,10 +5,10 @@ title: home

py{{ 'μ.twoha.cc' if minimal else 'u.twoha.cc' }}


- about
- contact
- uses
- ctf
+ about
+ contact
+ uses
+ ctf

py{{ 'full site' if minimal else 'minimal' }}
diff --git a/templates/base.html b/templates/base.html index 6cde981..acd6dce 100644 --- a/templates/base.html +++ b/templates/base.html @@ -33,7 +33,7 @@ about

[ about ]

contact

[ contact ]

uses

[ uses ]

- ctf

[ ctf ]

+ ctf

[ ctf ]