X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=phd_site.tmpl;h=d176f0ee6ee6bd787e1f4d85c0be39a879f4e7b3;hb=c1a994b2cce5060f46bb89094a49017a4dd8929a;hp=075f8d71671cd029d4890b60c0916cfd94280c78;hpb=da1a29778a183627d2ad16c5e6f312b385043461;p=phdru.name%2Fphdru.name.git diff --git a/phd_site.tmpl b/phd_site.tmpl index 075f8d7..d176f0e 100644 --- a/phd_site.tmpl +++ b/phd_site.tmpl @@ -14,7 +14,7 @@ #attr $Refresh = None #import time #attr $last_modified_en = time.strftime("%a, %d %b %Y %T GMT", time.gmtime()) -#attr $last_modified_ru = time.strftime("%d.%m.%Y × %T", time.localtime()) +#attr $local_time = time.localtime() #attr $styles = None #attr $alternates = None #attr $Tag = () @@ -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 @@ -135,10 +144,11 @@ $link_tag($tag) #end if #if $path.startswith("/Russian/")

üÔÁ ÓÔÒÁÎÉÃÁ http://phdru.name$path -ÂÙÌÁ ÓÇÅÎÅÒÉÒÏ×ÁÎÁ $last_modified_ru ÉÚ ÛÁÂÌÏÎÁ CheetahTemplate $_fileBaseName; +ÂÙÌÁ ÓÇÅÎÅÒÉÒÏ×ÁÎÁ $time.strftime("%d.%m.%Y", $local_time) × $time.strftime("%T", $local_time) ÉÚ ÛÁÂÌÏÎÁ CheetahTemplate +$_fileBaseName; îÅËÏÔÏÒÙÅ ÐÒÁ×Á ÚÁÒÅÚÅÒ×ÉÒÏ×ÁÎÙ. -÷Ù ÍÏÖÅÔÅ ÕÚÎÁÔØ Ï ÔÅÈÎÉÞÅÓËÉÈ ÁÓÐÅËÔÁÈ ÜÔÏÇÏ ÓÁÊÔÁ. -

+÷Ù ÍÏÖÅÔÅ ÕÚÎÁÔØ Ï ÔÅÈÎÉÞÅÓËÉÈ +ÁÓÐÅËÔÁÈ ÜÔÏÇÏ ÓÁÊÔÁ.

#else

This is the page http://phdru.name$path. It was generated on $last_modified_en from CheetahTemplate $_fileBaseName.