]> git.phdru.name Git - phdru.name/phdru.name.git/blobdiff - phd_site.tmpl
Убрать ссылки openid со всех страниц, кроме корневой
[phdru.name/phdru.name.git] / phd_site.tmpl
index 6da679aa1a9311ec8bd7662f8e9722f36b3a92c3..d176f0ee6ee6bd787e1f4d85c0be39a879f4e7b3 100644 (file)
@@ -95,7 +95,7 @@ $style
 #end for
 #end if
 <link rel="shortcut icon" href="${root}favicon.ico">
-#if not $root
+#if not $root and $path.endswith('index.html')
 <link rel="openid.delegate" href="http://phdru.name/">
 <link rel="openid2.local_id" href="http://phdru.name/">
 <link rel="openid.server" href="http://home.phdru.name/cgi-bin/poit.py">
@@ -105,6 +105,15 @@ $style
 </head>
 <body bgcolor="#CCCCCC" text="#000000"
       link="#0000bb"  vlink="#551a8b" alink="#ff0000">
+<p class="small">
+#set $path_components = $path.split('/')[1:-1]
+#set $breadcrumbs = ['<a href="' + $root + '">phdru.name</a>']
+#for $i in range(len($path_components))
+#set $subpath = '/'.join($path_components[:i+1])
+#silent $breadcrumbs.append('<a href="' + $root + $subpath + '/">' + $path_components[i]+ '</a>')
+#end for
+#echo " / ".join($breadcrumbs)
+</p>
 $body
 #def link_tag($tag)
 <a href="../../../tags/${tag}.html">$tag</a>