X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=phd_site.tmpl;h=d176f0ee6ee6bd787e1f4d85c0be39a879f4e7b3;hb=e3138599d1ad1cad91d48738c0c3c8f44675523c;hp=6da679aa1a9311ec8bd7662f8e9722f36b3a92c3;hpb=03f9943609343c4035886209f2e14b6ebdb6afb9;p=phdru.name%2Fphdru.name.git diff --git a/phd_site.tmpl b/phd_site.tmpl index 6da679a..d176f0e 100644 --- a/phd_site.tmpl +++ b/phd_site.tmpl @@ -95,7 +95,7 @@ $style #end for #end if -#if not $root +#if not $root and $path.endswith('index.html') @@ -105,6 +105,15 @@ $style +

+#set $path_components = $path.split('/')[1:-1] +#set $breadcrumbs = ['phdru.name'] +#for $i in range(len($path_components)) +#set $subpath = '/'.join($path_components[:i+1]) +#silent $breadcrumbs.append('' + $path_components[i]+ '') +#end for +#echo " / ".join($breadcrumbs) +

$body #def link_tag($tag) $tag